/* ============================================================
   Career Cabinet 宣传网页
   设计稿节点色值、尺寸、字号均取自 Ardot 设计稿（01/02/03/04 四个 Frame）
   ============================================================ */

/* ---------- 主题变量：Light（默认，对应设计稿 01/03） ---------- */
:root {
  --bg: #FAF9F5;            /* 页面底色 */
  --bgAlt: #F0EEE6;         /* 交替区底色 */
  --surface: #FFFFFF;       /* 卡片/气泡表面 */
  --surfaceSubtle: #F0EEE6; /* 次级表面 */
  --textPrimary: #141413;
  --textSecondary: #6B655C;
  --textTertiary: #9C958A;
  --brand: #D97757;
  --brandSoft: #F7EBE5;
  --border: #E8E2D7;
  --userBubble: #F0EEE6;
  --ctaText: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;

  --content-max: 1120px;
  --gutter: 64px;
}

/* ---------- 主题变量：Dark（跟随 data-theme / 系统偏好） ---------- */
:root[data-theme="dark"] {
  --bg: #141413;
  --bgAlt: #1F1E1D;
  --surface: #1F1E1D;
  --surfaceSubtle: #262522;
  --textPrimary: #FAF9F5;
  --textSecondary: #B8B1A6;
  --textTertiary: #7E776E;
  --brand: #E08A6C;
  --brandSoft: #3A2A22;
  --border: #35322E;
  --userBubble: #2A2926;
  --ctaText: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #141413;
    --bgAlt: #1F1E1D;
    --surface: #1F1E1D;
    --surfaceSubtle: #262522;
    --textPrimary: #FAF9F5;
    --textSecondary: #B8B1A6;
    --textTertiary: #7E776E;
    --brand: #E08A6C;
    --brandSoft: #3A2A22;
    --border: #35322E;
    --userBubble: #2A2926;
    --ctaText: #FFFFFF;
  }
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--textPrimary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .45s ease, color .45s ease;
  /* 兜底：入场的横向位移动画、装饰水印等，都不应该撑出横向滚动条 */
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0; }

::selection { background: var(--brand); color: #fff; }

/* ============================================================
   顶部导航（高 80，左右 padding 64）
   ============================================================ */
.site-header {
  width: 100%;
  background: var(--bg);
  transition: background-color .45s ease;
}
.nav-inner {
  max-width: 100%;
  height: 80px;
  padding: 0 var(--gutter);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  background: var(--brandSoft);
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -.01em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 主题切换器：容器 surfaceSubtle 底、圆角9、内边距3 */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 9px;
  background: var(--surfaceSubtle);
  transition: background-color .45s ease;
}
.theme-seg {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--textSecondary);
  transition: background-color .25s ease, color .25s ease;
}
.theme-seg:hover { color: var(--textPrimary); }
.theme-seg.is-active {
  background: var(--surface);
  color: var(--textPrimary);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.btn-nav {
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  background: var(--brand);
  color: var(--ctaText);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.btn-nav:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 6px 18px rgba(217,119,87,.28); }
.btn-nav:active { transform: translateY(0); }

/* ============================================================
   第一屏 Hero（高 920）
   ============================================================ */
.hero {
  position: relative;
  min-height: 920px;
  /* 首屏不超高：屏幕矮时按「视口高 − 导航高」收，避免第一屏就被裁掉一截 */
  min-height: min(920px, calc(100vh - 80px));
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 60px var(--gutter);
  overflow: hidden;
  transition: background-color .45s ease;
}
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  opacity: .13;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark img { width: 100%; height: 100%; object-fit: contain; }
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 700;
  line-height: 78px;
  text-align: center;
  color: var(--textPrimary);
  letter-spacing: -.01em;
}
.hero-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-subtitle p {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: var(--textSecondary);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  padding: 17px 32px;
  background: var(--brand);
  color: var(--ctaText);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(217,119,87,.22);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 30px rgba(217,119,87,.32); }
.btn-primary:active { transform: translateY(0); }
.btn-arrow { width: 18px; height: 18px; flex: none; }

/* ============================================================
   第二屏 场景气泡
   ============================================================ */
.scenes {
  background: var(--bgAlt);
  padding: 128px var(--gutter) 100px;
  transition: background-color .45s ease;
}
.scenes-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
}
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--textPrimary);
}
.bubble-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.bubble-row { display: flex; width: 100%; }
.bubble-row--left { justify-content: flex-start; }
.bubble-row--right { justify-content: flex-end; }

.scene-bubble {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 840px;
  width: 100%;
  padding: 24px 30px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background-color .45s ease, border-color .45s ease,
              transform .7s cubic-bezier(.16,1,.3,1), opacity .7s ease;
}
.bubble-row--right .scene-bubble { max-width: 900px; }
.bubble-row:nth-child(3) .scene-bubble { max-width: 820px; }
.bubble-row:nth-child(4) .scene-bubble { max-width: 880px; }
.quote-icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--brand);
}
.quote-icon svg { width: 24px; height: 24px; display: block; }
.scene-bubble p {
  font-size: 17px;
  font-weight: 400;
  line-height: 30px;
  color: var(--textPrimary);
}

/* 滚动浮现初始态：左侧气泡从左侧位移，右侧气泡从右侧位移 */
.reveal-bubble { opacity: 0; }
.reveal-bubble .scene-bubble { will-change: transform, opacity; }
.bubble-row--left.reveal-bubble .scene-bubble { transform: translateX(-48px); }
.bubble-row--right.reveal-bubble .scene-bubble { transform: translateX(48px); }
.reveal-bubble.is-visible { opacity: 1; }
.reveal-bubble.is-visible .scene-bubble { transform: translateX(0); }

/* ============================================================
   第三屏 能力展示
   ============================================================ */
.capabilities {
  background: var(--bg);
  padding: 132px var(--gutter) 108px;
  transition: background-color .45s ease;
}
.cap-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}
.tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tab {
  height: 122px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--textPrimary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .2s ease, box-shadow .2s ease;
}
.tab:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ctaText);
}
.tab-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}
.tab.is-active .tab-num { color: var(--ctaText); }
.tab-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
  color: var(--textPrimary);
}
.tab.is-active .tab-title { color: var(--ctaText); font-weight: 600; }

/* 聊天演示区 */
.chat-demos { width: 100%; }
.chat-demo { display: none; animation: fadeIn .45s ease both; }
.chat-demo.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-title {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.chat-window {
  width: 100%;
  padding: 30px 34px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: background-color .45s ease, border-color .45s ease;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--textPrimary);
}
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--brand);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  background: var(--brandSoft);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--user {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surfaceSubtle);
  color: var(--textTertiary);
}
.avatar--user svg { width: 20px; height: 20px; }

.msg-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; }
.msg-row--assistant { justify-content: flex-end; }
.msg-row--user { justify-content: flex-start; }
.bubble {
  max-width: 660px;
  padding: 16px 20px;
  border-radius: 16px;
}
.bubble p {
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
  color: var(--textPrimary);
}
.bubble p + p { margin-top: 8px; }
.bubble strong { font-weight: 600; }
.bubble--assistant { background: var(--brandSoft); }
.bubble--user { max-width: 560px; background: var(--userBubble); padding: 15px 19px; }
.msg-row--user .bubble--user { order: 1; }

/* 卡片右对齐容器（设计稿 paddingRight 46） */
.card-row { display: flex; justify-content: flex-end; padding-right: 46px; }

/* 优先级表格卡片 */
.priority-card {
  width: 660px;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: background-color .45s ease, border-color .45s ease;
}
.pc-head,
.pc-row {
  display: flex;
  align-items: center;
  padding: 13px 24px;
}
.pc-head { background: var(--surfaceSubtle); }
.pc-row { padding-top: 12px; padding-bottom: 12px; }
.pc-col-a { width: 180px; flex: none; font-size: 13px; font-weight: 600; color: var(--textPrimary); }
.pc-head .pc-col-a { font-size: 13px; }
.pc-row .pc-col-a { font-size: 14px; font-weight: 500; }
.pc-col-b { flex: 1; color: var(--textSecondary); }
.pc-head .pc-col-b { font-size: 13px; font-weight: 600; color: var(--textPrimary); }
.pc-row .pc-col-b { font-size: 14px; font-weight: 400; }
.pc-divider { height: 1px; background: var(--border); }
.pc-confirm {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pc-question { font-size: 14px; font-weight: 500; color: var(--textPrimary); }
.pc-buttons { display: flex; gap: 10px; }
.choice-btn {
  border: 0;
  border-radius: 9px;
  padding: 9px 28px;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  color: var(--textSecondary);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.choice-btn:hover { transform: translateY(-1px); }
.choice-btn.is-selected { background: var(--brand); color: var(--ctaText); font-weight: 600; }

/* 记忆勾选卡片 */
.memory-card {
  width: 660px;
  max-width: 100%;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--brandSoft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color .45s ease;
}
.mc-head { display: flex; align-items: center; gap: 10px; }
.mc-icon { width: 20px; height: 20px; flex: none; }
.mc-icon svg { width: 20px; height: 20px; display: block; }
.mc-title { font-size: 16px; font-weight: 600; color: var(--textPrimary); }
.mc-desc { font-size: 13px; font-weight: 400; line-height: 20px; color: var(--textSecondary); }
.mc-options { display: flex; flex-direction: column; gap: 11px; }
.mc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--textPrimary);
  cursor: pointer;
}
.checkbox {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.checkbox svg { width: 8px; height: 6px; opacity: 0; }
.checkbox.is-checked { background: var(--brand); border-color: var(--brand); }
.checkbox.is-checked svg { opacity: 1; }
.mc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.mc-link {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--textSecondary);
  padding: 8px 4px;
}
.mc-link:hover { color: var(--textPrimary); }
.mc-save {
  border: 0;
  border-radius: 9px;
  padding: 10px 22px;
  background: var(--brand);
  color: var(--ctaText);
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s ease, filter .2s ease;
}
.mc-save:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ============================================================
   底部 CTA
   ============================================================ */
.bottom-cta {
  background: var(--bgAlt);
  padding: 108px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  transition: background-color .45s ease;
}
.bottom-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--textPrimary);
}
.bottom-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--textSecondary);
}
.bottom-cta .btn-primary { padding: 17px 36px; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--bg);
  padding: 40px var(--gutter);
  text-align: center;
  transition: background-color .45s ease;
}
.site-footer p {
  font-size: 13px;
  font-weight: 400;
  color: var(--textTertiary);
}

/* ============================================================
   响应式：移动端（设计稿 03/04 · 390 宽）
   ============================================================ */
@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .nav-inner { height: 68px; gap: 8px; }
  .brand-icon { width: 30px; height: 30px; border-radius: 8px; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .nav-actions { gap: 8px; }
  .theme-switch { gap: 0; padding: 2px; }
  .theme-seg { padding: 3px 6px; font-size: 10.5px; white-space: nowrap; }
  .btn-nav { padding: 6px 11px; font-size: 11.5px; white-space: nowrap; }

  .hero {
    min-height: 660px;
    min-height: min(660px, calc(100vh - 68px));
    padding: 48px 24px;
    gap: 28px;
  }
  /* 小屏上横向位移动画容易撑破布局，改成纵向淡入 */
  .bubble-row--left.reveal-bubble .scene-bubble,
  .bubble-row--right.reveal-bubble .scene-bubble { transform: translateY(16px); }
  .hero-watermark { width: min(400px, 78vw); height: min(400px, 78vw); }
  .hero-content { gap: 26px; }
  .hero-title {
    font-size: 32px;
    line-height: 46px;
    max-width: 340px;
  }
  .hero-subtitle p { font-size: 15px; line-height: 1.7; }
  .btn-primary { padding: 15px 28px; font-size: 16px; }

  .scenes { padding: 72px 20px 64px; }
  .scenes-inner { gap: 36px; }
  .section-title { font-size: 28px; }
  .bubble-list { gap: 18px; }
  .bubble-row--left,
  .bubble-row--right { justify-content: flex-start; }
  .scene-bubble,
  .bubble-row--right .scene-bubble,
  .bubble-row:nth-child(3) .scene-bubble,
  .bubble-row:nth-child(4) .scene-bubble { max-width: 100%; }
  .scene-bubble { padding: 18px 20px; gap: 12px; border-radius: 18px; }
  .quote-icon, .quote-icon svg { width: 20px; height: 20px; }
  .scene-bubble p { font-size: 15px; line-height: 26px; }

  .capabilities { padding: 72px 20px 64px; }
  .cap-inner { gap: 32px; }
  .tabs { grid-template-columns: 1fr; gap: 10px; }
  .tab { height: auto; min-height: 88px; padding: 14px 16px; gap: 6px; }
  .tab-title { font-size: 14px; line-height: 21px; }
  .demo-title { font-size: 13px; margin-bottom: 14px; line-height: 1.5; }
  .chat-window { padding: 20px 16px; gap: 16px; border-radius: 18px; }
  .bubble { max-width: 82%; padding: 13px 15px; }
  .bubble p { font-size: 14px; line-height: 23px; }
  .bubble p + p { margin-top: 7px; }
  .bubble--user { max-width: 82%; padding: 12px 15px; }
  .avatar { width: 30px; height: 30px; border-radius: 9px; }
  .card-row { padding-right: 0; }
  .priority-card, .memory-card { width: 100%; }
  .pc-head, .pc-row { padding-left: 16px; padding-right: 16px; }
  .pc-col-a { width: 96px; }
  .pc-head .pc-col-a, .pc-col-b { font-size: 12px; }
  .pc-row .pc-col-a, .pc-row .pc-col-b { font-size: 13px; }
  .pc-confirm { padding: 14px 16px; }
  .choice-btn { padding: 8px 22px; }
  .memory-card { padding: 16px; }
  .mc-actions { flex-wrap: wrap; }

  .bottom-cta { padding: 72px 24px 60px; gap: 20px; }
  .bottom-title { font-size: 28px; line-height: 1.5; }
  .bottom-subtitle { font-size: 15px; }

  .site-footer { padding: 32px 24px; }
  .site-footer p { font-size: 12px; line-height: 1.7; }
}

/* 超窄屏微调 */
@media (max-width: 420px) {
  /* 小屏上主题切换很挤，且手机本身跟随系统主题，直接收起 */
  .theme-switch { display: none; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 28px; line-height: 42px; }
  .nav-actions { gap: 8px; }
  .brand-name { font-size: 14px; }
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-bubble { opacity: 1 !important; }
  .reveal-bubble .scene-bubble { transform: none !important; }
}
