/* ============================================================
   第一份作品计划 · 样式
   风格：Notion / Linear / Apple 产品页 —— 简洁、留白、有温度
   ============================================================ */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-2: #57534E;
  --ink-3: #A8A29E;
  --line: #E8E4DC;
  --line-strong: #D8D2C6;
  --accent: #F0642D;
  --accent-deep: #D94F1E;
  --accent-soft: #FFF0E8;
  --ai: #3B82F6;
  --ai-soft: #EFF4FF;
  --ok: #16A34A;
  --ok-soft: #EAF6EE;
  --gold: #F0A500;
  --gold-soft: #FDF3DC;
  --shadow-1: 0 1px 2px rgba(28, 25, 23, .05);
  --shadow-2: 0 8px 28px rgba(28, 25, 23, .07);
  --shadow-3: 0 20px 50px rgba(28, 25, 23, .10);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --topbar-h: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; }
p { line-height: 1.7; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #2b2622; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(28,25,23,.18); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-text { color: var(--ink-2); padding: 10px 14px; font-weight: 500; }
.btn-text:hover { color: var(--ink); background: rgba(28,25,23,.05); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn .arrow { transition: transform .18s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 14px;
}
.accent-text { color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
}
.chip.hot { background: var(--accent-soft); border-color: #F8C9B4; color: var(--accent-deep); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--topbar-h);
  background: rgba(250, 248, 244, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 18px; padding: 0 24px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-star { color: var(--accent); font-size: 18px; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.topbar-progress { flex: 1; display: flex; justify-content: center; }
.progress-seg { display: flex; gap: 5px; width: 100%; max-width: 360px; }
.progress-seg .seg {
  flex: 1; height: 4px; border-radius: 99px;
  background: var(--line); overflow: hidden; position: relative;
  transition: background .3s var(--ease);
}
.progress-seg .seg.done { background: var(--accent); }
.progress-seg .seg.current { background: var(--accent); opacity: .55; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.level-pill {
  font-size: 12px; font-weight: 600; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid #F8C9B4;
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.level-pill.lv2 { color: #9a6b00; background: var(--gold-soft); border-color: #F0D18A; }
.reset-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--ink-3); border: 1px solid transparent;
  transition: all .18s var(--ease);
}
.reset-btn:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }

/* ---------- 视图切换 ---------- */
.view { display: none; padding: calc(var(--topbar-h) + 40px) 24px 80px; }
.view.active { display: block; animation: viewIn .5s var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
main { max-width: 1120px; margin: 0 auto; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   页面 1：首页
   ============================================================ */
#view-home { padding-left: 0; padding-right: 0; }
.hero {
  position: relative; text-align: center;
  padding: clamp(60px, 10vw, 120px) 24px clamp(50px, 8vw, 96px);
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240,100,45,.14), transparent 70%);
  pointer-events: none;
}
.hero-star { position: absolute; color: var(--accent); opacity: .5; animation: twinkle 4s ease-in-out infinite; pointer-events: none; }
.hero-star.s1 { top: 22%; left: 12%; font-size: 16px; }
.hero-star.s2 { top: 30%; right: 14%; font-size: 12px; animation-delay: 1.2s; }
.hero-star.s3 { bottom: 20%; left: 22%; font-size: 10px; animation-delay: 2.1s; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.9); } 50% { opacity: .8; transform: scale(1.15); } }

.hero .eyebrow { animation: rise .7s var(--ease) .05s both; }
.hero-title {
  font-size: clamp(36px, 6.4vw, 64px); font-weight: 700; letter-spacing: -.02em;
  animation: rise .7s var(--ease) .15s both;
}
.hero-sub {
  margin: 22px auto 0; max-width: 520px;
  font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2);
  animation: rise .7s var(--ease) .3s both;
}
.hero-cta { margin-top: 38px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: rise .7s var(--ease) .45s both; }
.hero-note { font-size: 13px; color: var(--ink-3); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.home-section { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 7vw, 84px) 24px; }
.home-kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 12px; }
.home-h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.01em; margin-bottom: 36px; }
.desktop-only { display: block; }

.needs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.need-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--shadow-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.need-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.need-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.need-icon svg { width: 24px; height: 24px; }
.need-card h3 { font-size: 17px; margin-bottom: 8px; }
.need-card p { font-size: 14px; color: var(--ink-2); }

.journey-section { background: linear-gradient(180deg, transparent, rgba(240,100,45,.045) 20%, rgba(240,100,45,.045) 80%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 40px; }
.journey-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 16px; box-shadow: var(--shadow-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.journey-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.j-num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.journey-item h4 { font-size: 15px; margin: 8px 0 4px; }
.journey-item p { font-size: 12.5px; color: var(--ink-3); }
.journey-cta { text-align: center; }

.home-quote {
  text-align: center; padding: clamp(56px, 9vw, 110px) 24px;
  font-size: clamp(24px, 4.4vw, 40px); font-weight: 700; letter-spacing: -.01em;
  color: var(--accent-deep);
}

/* ============================================================
   页面 2：AI 探索诊断（聊天式）
   ============================================================ */
.diag-shell { max-width: 680px; margin: 0 auto; }
.diag-progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.diag-label { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.diag-track { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.diag-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }

.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 100%; animation: msgIn .35s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg-avatar {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ai); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.msg-bot { align-items: flex-start; }
.msg-user { flex-direction: row-reverse; }
.msg-user .msg-avatar { background: var(--accent); }
.bubble {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px; font-size: 15px;
  max-width: min(520px, 82%);
  box-shadow: var(--shadow-1);
}
.msg-user .bubble { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 16px 4px 16px 16px; }
.bubble .b-name { font-size: 12px; font-weight: 600; color: var(--ai); margin-bottom: 3px; }

.msg-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opt-btn {
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 16px;
  transition: all .16s var(--ease);
}
.opt-btn:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); transform: translateY(-1px); }
.opt-btn.chosen { background: var(--ink); color: #fff; border-color: var(--ink); }

.name-form { display: flex; gap: 8px; margin-top: 10px; }
.name-input {
  flex: 1; min-width: 0; font-size: 15px; font-family: inherit;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); outline: none; background: var(--surface);
  transition: border-color .16s var(--ease);
}
.name-input:focus { border-color: var(--accent); }
.name-submit { padding: 10px 18px; }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 13px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.gen-block { text-align: center; padding: 46px 20px 40px; }
.gen-star { font-size: 40px; color: var(--accent); animation: spinPulse 1.1s ease-in-out infinite; display: inline-block; }
@keyframes spinPulse { 0% { transform: scale(.85) rotate(0deg); opacity: .5; } 50% { transform: scale(1.15) rotate(15deg); opacity: 1; } 100% { transform: scale(.85) rotate(0deg); opacity: .5; } }
.gen-text { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.gen-track { max-width: 240px; height: 6px; background: var(--line); border-radius: 99px; margin: 18px auto 0; overflow: hidden; }
.gen-fill { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s linear; }

/* ============================================================
   页面 3：探索档案
   ============================================================ */
.page-head { text-align: center; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -.02em; }
.page-sub { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

.profile-card { max-width: 720px; margin: 0 auto; padding: 34px; }
.profile-top { display: flex; align-items: center; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 20px; flex: 0 0 64px;
  background: linear-gradient(135deg, var(--accent), #ff9a5f);
  color: #fff; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(240,100,45,.3);
}
.profile-id { flex: 1; min-width: 0; }
.profile-name { font-size: 22px; font-weight: 700; }
.profile-type { font-size: 15px; color: var(--accent-deep); font-weight: 600; margin-top: 2px; }
.profile-arch {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 26px 0; }
.profile-block:first-child { grid-column: 1 / -1; }
.block-label { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 10px; }
.block-text { font-size: 15px; color: var(--ink); }
.profile-note {
  background: var(--ai-soft); border: 1px solid #D6E4FF; color: #1e4f9e;
  border-radius: var(--r-md); padding: 14px 18px; font-size: 14px;
  margin-bottom: 26px;
}
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   页面 4：项目匹配
   ============================================================ */
#view-match { max-width: 1120px; }
.project-card { max-width: 860px; margin: 0 auto 54px; padding: 38px; position: relative; overflow: hidden; }
.project-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffb08a);
}
.match-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-deep); background: var(--accent-soft);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 18px;
}
.project-head h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.project-head p { color: var(--ink-2); font-size: 15px; }
.project-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.meta-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.meta-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .05em; margin-bottom: 6px; }
.meta-value { font-size: 14.5px; font-weight: 500; }
.project-roles { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.roles-label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.roles-tip { font-size: 12.5px; color: var(--accent-deep); font-weight: 500; }

.coming-wrap { text-align: center; }
.coming-title { font-size: 20px; margin-bottom: 24px; }
.coming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 0 auto; text-align: left; }
.coming-card { padding: 26px; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.coming-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.coming-card h4 { font-size: 16px; margin-bottom: 8px; }
.coming-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.coming-tag { font-size: 12px; color: var(--ink-3); }

/* ============================================================
   页面 5：真实项目体验
   ============================================================ */
.challenge-layout { display: grid; grid-template-columns: 280px 1fr; gap: 36px; max-width: 1080px; margin: 0 auto; align-items: start; }
.challenge-side { position: sticky; top: calc(var(--topbar-h) + 30px); }
.challenge-side h1 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 12px; }
.challenge-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 26px; }
.step-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.step-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  padding: 9px 12px; border-radius: 10px; position: relative;
  transition: all .2s var(--ease);
}
.step-list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong); transition: all .2s var(--ease);
}
.step-list li.active { color: var(--ink); background: var(--accent-soft); }
.step-list li.active::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(240,100,45,.14); }
.step-list li.done { color: var(--ink-2); }
.step-list li.done::before { background: var(--ok); }
#backToMatchBtn { color: var(--ink-3); }

.challenge-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 34px; min-height: 480px; }
.stage-step { animation: viewIn .4s var(--ease) both; }
.stage-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.stage-title { font-size: 22px; margin-bottom: 12px; }
.stage-desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 24px; }

.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 10px; }
.persona-card {
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 20px 16px; text-align: left; background: var(--surface);
  transition: all .18s var(--ease); position: relative;
}
.persona-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.persona-card.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(240,100,45,.12); }
.persona-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.persona-tag { font-size: 12.5px; color: var(--accent-deep); font-weight: 600; margin: 6px 0 8px; }
.persona-quote { font-size: 13.5px; color: var(--ink-2); }

.choice-group { margin-bottom: 22px; }
.choice-label { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.choice-label .q-no { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.choice-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip {
  font-size: 14px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px;
  background: var(--surface); transition: all .16s var(--ease);
  text-align: left;
}
.choice-chip small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.choice-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.choice-chip.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice-chip.selected small { color: rgba(255,255,255,.65); }

.stage-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.stage-hint { font-size: 13px; color: var(--ink-3); }

.ai-block {
  background: var(--ai-soft); border: 1px solid #D6E4FF; border-radius: var(--r-md);
  padding: 18px 20px; margin-bottom: 20px;
}
.ai-block .ai-title { font-size: 13px; font-weight: 700; color: #1e4f9e; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ai-block .ai-star { color: var(--ai); }
.ai-block p { font-size: 14.5px; color: #23406e; }

.plan-draft {
  background: #fffdf9; border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  padding: 22px 24px; margin-bottom: 20px;
}
.plan-draft h4 { font-size: 16px; margin-bottom: 12px; }
.plan-draft .pd-row { display: flex; gap: 10px; font-size: 14px; padding: 6px 0; }
.plan-draft .pd-label { flex: 0 0 88px; color: var(--ink-3); font-weight: 500; }
.plan-draft .pd-value { color: var(--ink); }
.plan-draft .pd-oneline { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 14.5px; color: var(--accent-deep); font-weight: 500; }

.suggest-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.suggest-item {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  background: var(--surface); transition: all .16s var(--ease);
}
.suggest-item:hover { border-color: var(--ai); transform: translateY(-1px); }
.suggest-item.selected { border-color: var(--ai); background: var(--ai-soft); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.suggest-item .s-check {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; flex: 0 0 20px; margin-top: 2px; transition: all .16s var(--ease);
}
.suggest-item.selected .s-check { background: var(--ai); border-color: var(--ai); }
.suggest-item .s-body { min-width: 0; }
.suggest-item .s-title { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.suggest-item .s-detail { font-size: 13px; color: var(--ink-2); }

.summary-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 22px; }
.summary-card .sum-row { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; }
.summary-card .sum-label { flex: 0 0 80px; color: var(--ink-3); font-weight: 500; }
.summary-card .sum-value { color: var(--ink); }

.gen-final { text-align: center; padding: 40px 20px; }
.gen-final .gen-star { font-size: 46px; }
.gen-final p { margin-top: 14px; color: var(--ink-2); }

/* ============================================================
   页面 6：作品成果卡
   ============================================================ */
.result-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.result-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #FBF7F0 100%);
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-3);
  padding: 40px 36px 30px; text-align: left; margin-bottom: 30px;
  animation: cardPop .6s var(--ease) both;
}
@keyframes cardPop { 0% { opacity: 0; transform: scale(.92) translateY(16px); } 60% { transform: scale(1.02); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.rc-spark { position: absolute; color: var(--gold); animation: twinkle 3.2s ease-in-out infinite; pointer-events: none; }
.rc-spark-1 { top: 26px; right: 60px; font-size: 18px; }
.rc-spark-2 { bottom: 90px; left: 28px; font-size: 13px; animation-delay: 1.4s; }
.rc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.rc-star {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px;
  background: linear-gradient(135deg, var(--accent), #ff9a5f);
  color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(240,100,45,.28);
}
.rc-title { font-size: 22px; font-weight: 700; flex: 1; }
.rc-badges { display: flex; gap: 6px; }
.badge-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.badge-dot.gold { background: linear-gradient(135deg, #F5B301, #E89A00); box-shadow: 0 4px 10px rgba(240,165,0,.35); }
.badge-dot.blue { background: linear-gradient(135deg, #5B9BF5, #3B82F6); box-shadow: 0 4px 10px rgba(59,130,246,.3); }
.rc-row { display: flex; gap: 14px; padding: 9px 0; align-items: flex-start; }
.rc-label { flex: 0 0 72px; font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 3px; }
.rc-value { font-size: 15px; color: var(--ink); }
.rc-value.rc-role { font-weight: 700; color: var(--accent-deep); }
.rc-abilities { flex-direction: column; gap: 8px; }
.rc-abilities .rc-label { padding-top: 6px; }
.rc-foot {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em;
}
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result-tip { margin-top: 20px; font-size: 13.5px; color: var(--ink-3); }

/* ============================================================
   页面 7：北辰青年
   ============================================================ */
.beichen-hero { text-align: center; padding: clamp(30px, 6vw, 70px) 0 10px; }
.beichen-hero h1 { font-size: clamp(24px, 4vw, 38px); letter-spacing: -.02em; margin-bottom: 18px; }
.beichen-sub { color: var(--ink-2); font-size: 15px; max-width: 560px; margin: 0 auto; }
.beichen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px 0; }
.beichen-card { padding: 30px 26px; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.beichen-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.bc-icon { font-size: 22px; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.bc-icon-1 { background: var(--accent-soft); color: var(--accent); }
.bc-icon-2 { background: var(--ai-soft); color: var(--ai); }
.bc-icon-3 { background: var(--gold-soft); color: #B07A00; }
.beichen-card h3 { font-size: 17px; margin-bottom: 8px; }
.beichen-card p { font-size: 14px; color: var(--ink-2); }
.beichen-cta { text-align: center; padding: 44px 30px; margin-bottom: 20px; }
.beichen-cta h3 { font-size: clamp(18px, 2.6vw, 22px); margin-bottom: 22px; }
.beichen-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ============================================================
   小辰 AI 伙伴
   ============================================================ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 26px rgba(28,25,23,.3);
  transition: transform .2s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.fab-star { font-size: 22px; line-height: 1; margin-top: 10px; color: #ffb08a; }
.fab-label { font-size: 11px; font-weight: 600; }
.chat-fab.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.18); } }

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 100;
  width: 340px; max-width: calc(100vw - 32px);
  height: 460px; max-height: calc(100vh - 140px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-3);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; animation: panelIn .28s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--ai-soft);
}
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ai); color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.chat-head-id { flex: 1; }
.chat-name { font-size: 15px; font-weight: 700; }
.chat-status { font-size: 12px; color: var(--ink-3); }
.chat-close { font-size: 20px; color: var(--ink-3); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-close:hover { background: rgba(28,25,23,.06); color: var(--ink); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-body .msg { max-width: 100%; }
.chat-body .bubble { max-width: 86%; }
.chat-quick { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.quick-chip {
  font-size: 12.5px; color: var(--ink-2); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  transition: all .15s var(--ease);
}
.quick-chip:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(28,25,23,.3);
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 24px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand { font-weight: 600; font-size: 14px; }
.footer-line { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: repeat(3, 1fr); }
  .challenge-layout { grid-template-columns: 1fr; gap: 20px; }
  .challenge-side { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; }
  .challenge-side h1 { width: 100%; margin-bottom: 4px; }
  .challenge-desc { margin-bottom: 4px; }
  .step-list { flex-direction: row; flex-wrap: wrap; margin: 0; }
  .step-list li { padding: 6px 10px; font-size: 13px; }
  #backToMatchBtn { margin-left: auto; }
}

@media (max-width: 640px) {
  .desktop-only { display: none; }
  .needs-grid { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-card { padding: 24px 20px; }
  .profile-grid { grid-template-columns: 1fr; }
  .project-card { padding: 26px 20px; }
  .project-meta { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: 1fr; }
  .beichen-grid { grid-template-columns: 1fr; }
  .challenge-stage { padding: 24px 18px; }
  .persona-grid { grid-template-columns: 1fr; }
  .result-card { padding: 28px 20px 24px; }
  .topbar-progress { display: none; }
  .brand-name { font-size: 14px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-panel { right: 16px; bottom: 84px; height: 70vh; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
