/* ============================================================
   AI创客家 Creator · 视觉升级层（Apple 风格）
   在 creator.css 之后加载，仅 app.html 引用：只调整视觉层级、间距与质感，
   不改变布局语义和交互钩子。
   方向：浅灰底 + 白色无边框卡片、毛玻璃导航、大字号紧凑标题、胶囊按钮、
   单一品牌蓝作为交互色；紫色仍只用于 AI，绿色只用于完成态。
   ============================================================ */

:root {
  --c-ink: #1d1d1f;
  --c-primary: #0071e3;
  --c-primary-strong: #0066cc;
  --c-primary-soft: #e8f1fc;
  --c-accent: #ff9f0a;
  --c-accent-soft: #fff4e2;
  --c-bg: #f5f5f7;
  --c-surface: #ffffff;
  --c-muted: #f5f5f7;
  --c-text: #1d1d1f;
  --c-text-2: #6e6e73;
  --c-text-3: #86868b;
  --c-line: #d2d2d7;
  --c-hairline: rgba(0, 0, 0, 0.08);
  --c-fill: rgba(0, 0, 0, 0.05);
  --c-fill-strong: rgba(0, 0, 0, 0.08);
  --c-ai: #7d5bed;
  --c-ai-soft: #f4f0ff;
  --c-success: #248a3d;
  --c-success-soft: #e8f6ec;
  --c-new: #bf4800;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --radius-pill: 980px;

  --shadow-s: none;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-l: 0 12px 40px rgba(0, 0, 0, 0.1);

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

body { font-size: 15px; letter-spacing: -0.01em; color: var(--c-text); background: var(--c-bg); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--c-text); font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }
::selection { background: rgba(0, 113, 227, 0.2); }

/* ---------- 按钮：胶囊、无投影 ---------- */
.btn {
  min-height: 40px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover:not(:disabled) { transform: none; }
.btn:active:not(:disabled) { opacity: 0.8; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: #0077ed; }
.btn-ghost { background: var(--c-fill); color: var(--c-text); border-color: transparent; box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--c-fill-strong); border-color: transparent; }
.btn-ai { background: var(--c-ai); color: #fff; box-shadow: none; }
.btn-ai:hover:not(:disabled) { filter: none; background: #6f4ce0; }
.btn-success { background: var(--c-success); }
.btn-sm { min-height: 32px; padding: 5px 14px; font-size: 13px; }

/* ---------- 应用骨架 ---------- */
.ws-sidebar {
  width: 240px;
  gap: 2px;
  padding: 20px 12px;
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-right: 1px solid var(--c-hairline);
}
.ws-brand { gap: 10px; padding: 0 10px 20px; margin-bottom: 4px; border-bottom: 0; }
.ws-brand img { width: 32px; height: 32px; border-radius: 8px; }
.ws-brand strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.ws-brand small { color: var(--c-text-3); font-size: 11px; }
.ws-nav-caption { --group: var(--c-primary); display: flex; align-items: center; gap: 8px; padding: 16px 12px 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--group); }
.ws-nav-caption::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--group); }
.ws-nav-caption:first-child { padding-top: 6px; }
/* 分组色仅用于标题：创造用主蓝；紫色留给 AI，绿色留给完成，不在此复用。 */
.ws-nav-caption[data-group="grow"] { --group: #c45a00; }
.ws-nav-caption[data-group="discover"] { --group: #0e7c86; }

.ws-nav-item {
  position: relative;
  min-height: 36px;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text);
  transition: background 0.15s var(--ease);
}
.ws-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ws-nav-item:hover { background: rgba(0, 0, 0, 0.04); color: var(--c-text); }
.ws-nav-item.active { background: rgba(0, 0, 0, 0.07); color: var(--c-text); font-weight: 600; box-shadow: none; }

.ws-sidebar { display: flex; flex-direction: column; }
.ws-nav { display: flex; flex-direction: column; gap: 2px; }
.ws-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  margin: 0 4px 10px;
  padding: 7px 14px;
  border: 1px solid var(--c-hairline);
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.ws-new span { color: var(--c-primary); font-size: 16px; line-height: 1; }
.ws-new:hover { border-color: rgba(0, 0, 0, 0.16); background: #fff; }

.ws-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 0 10px;
  border-top: 1px solid var(--c-hairline);
}
.ws-sidebar > .ws-account { margin-top: auto; }
.ws-account .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #a1a1a6, #6e6e73);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.ws-account-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#wsNick { overflow: hidden; color: var(--c-text); font-size: 13px; font-weight: 500; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.runtime-status { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--c-text-3); font-size: 11px; line-height: 1.4; white-space: nowrap; }
.runtime-status::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--c-success); }
.runtime-status.pending { background: none; color: #d70015; }
.runtime-status.pending::before { background: #ff3b30; }
.ws-logout { flex-shrink: 0; min-height: 28px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--c-text-2); font: inherit; font-size: 12px; cursor: pointer; }
.ws-logout:hover { background: var(--c-fill); color: var(--c-text); }
.ws-main { scroll-padding-top: 24px; }

.ws-view { max-width: 1120px; padding: 44px 48px 80px; }

/* ---------- 标签 / 区块标题 ---------- */
.ws-view .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-new);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head { align-items: flex-end; margin: 72px 0 20px; }
.section-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.section-head .sub { display: block; margin-top: 6px; color: var(--c-text-2); font-size: 15px; }

.hub-link { gap: 4px; color: var(--c-primary); font-size: 15px; font-weight: 400; transition: color 0.15s var(--ease); }
.hub-link:hover { color: var(--c-primary); text-decoration: underline; }

/* ---------- 首页：问候 + 继续创作 ---------- */
.hub-greeting { margin: 0 0 28px; }
.hub-greeting h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.hub-greeting p { margin: 6px 0 0; color: var(--c-text-2); font-size: 15px; line-height: 1.6; }

.hub-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding: 16px 20px;
  border-radius: var(--radius-s);
  background: var(--c-ai-soft);
}
.hub-draft h2 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.hub-draft p { margin: 0; color: var(--c-text-2); font-size: 13px; }

.hub-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 40px;
  padding: 32px 36px;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--c-surface);
  box-shadow: none;
}
.hub-current .eyebrow { color: var(--c-text-2); font-size: 13px; font-weight: 500; }
.hub-current h2 { margin: 4px 0 4px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.hub-progress-label { margin: 0 0 18px; color: var(--c-text-3); font-size: 13px; }
.home-stages {
  display: grid;
  grid-template-columns: repeat(var(--stage-count, 5), minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-stages li { min-width: 0; padding-top: 10px; border-top: 4px solid #e8e8ed; border-radius: 2px; color: var(--c-text-3); font-size: 12px; line-height: 1.35; }
.home-stages li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-stages li.is-done { border-color: var(--c-text); color: var(--c-text-2); }
.home-stages li.is-current { border-color: var(--c-primary); color: var(--c-primary); font-weight: 600; }
.hub-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 16px 18px 16px 20px;
  border-radius: 14px;
  background: var(--c-muted);
}
.hub-next small { display: block; margin-bottom: 2px; color: var(--c-text-3); font-size: 12px; }
.hub-next strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hub-next p { margin: 3px 0 0; color: var(--c-text-2); font-size: 13px; }
.hub-next .btn { flex-shrink: 0; min-width: 88px; }
.hub-project-symbol {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  min-height: 200px;
  border: 0;
  border-radius: 18px;
  background: var(--c-muted);
  box-shadow: none;
  font-size: 72px;
}
.hub-current-empty { grid-template-columns: minmax(0, 1fr); }
.hub-current-empty p { max-width: 520px; margin: 0 0 22px; color: var(--c-text-2); }

/* ---------- 首页：作品与记录 ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.home-panel { display: flex; flex-direction: column; min-width: 0; padding: 24px 28px; border-radius: var(--radius); background: var(--c-surface); }
.home-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.home-panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.home-panel-head .sub { display: block; margin-top: 2px; color: var(--c-text-3); font-size: 12px; }
.home-panel-head .hub-link { flex-shrink: 0; font-size: 14px; }
.home-panel-empty { margin: 8px 0 0; color: var(--c-text-2); font-size: 14px; line-height: 1.6; }
.home-work-list { display: flex; flex-direction: column; }
.home-work {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--c-hairline);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.home-work:first-child { border-top: 0; }
.home-work-copy { min-width: 0; }
.home-work-copy strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.home-work-copy .badge { margin-left: 8px; padding: 1px 8px; vertical-align: 1px; }
.home-work-copy small { display: block; margin-top: 2px; color: var(--c-text-2); font-size: 13px; }
.home-work time { color: var(--c-text-3); font-size: 12px; white-space: nowrap; }
.home-work:hover strong { color: var(--c-primary); }
.home-records { margin: 0; padding: 0; list-style: none; }
.home-records li + li { border-top: 1px solid var(--c-hairline); }
.home-records a { display: block; padding: 11px 0; color: inherit; text-decoration: none; }
.home-records strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.home-records small { color: var(--c-text-3); font-size: 12px; }
.home-records a:hover strong { color: var(--c-primary); }
.home-record-new {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.home-panel-empty + .home-record-new, .home-records + .home-record-new { margin-top: 14px; }
.home-record-new:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

/* ---------- 首页：成长路径条 ---------- */
.home-paths {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--c-surface);
}
.home-paths h2 { margin: 0; font-size: 17px; font-weight: 600; }
.home-path-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-path { display: block; min-height: 0; padding-left: 14px; border-left: 2px solid var(--c-hairline); color: inherit; text-decoration: none; }
.home-path strong { display: block; font-size: 14px; font-weight: 600; }
.home-path small { color: var(--c-text-3); font-size: 12px; }
.home-path.is-current { border-color: var(--c-primary); }
.home-path.is-current small { color: var(--c-text-2); }
.home-path:hover strong { color: var(--c-primary); }
.home-paths .hub-link { font-size: 14px; }

/* ---------- 首页：AI 创客家活动动态 ---------- */
.home-activities {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
  padding: 20px 28px;
  border-radius: var(--radius);
  background: var(--c-surface);
}
.home-activities h2 { margin: 0; font-size: 17px; font-weight: 600; }
.home-activity-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-activity { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.home-activity-day { flex-shrink: 0; width: 44px; text-align: center; font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.home-activity-day small { display: block; color: var(--c-text-3); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.home-activity-copy { min-width: 0; }
.home-activity-copy strong { display: block; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.home-activity-copy small { color: var(--c-text-3); font-size: 12px; }
.home-activity.is-live .home-activity-copy small { color: #12a150; font-weight: 600; }
.home-activity:hover strong { color: var(--c-primary); }
.home-activities .hub-link { font-size: 14px; }

/* ---------- 作品卡 ---------- */
.works-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.work-card {
  gap: 10px;
  min-height: 188px;
  padding: 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card:hover { border-color: transparent; box-shadow: var(--shadow-l); transform: scale(1.01); }
.work-card strong { margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.work-card .sub { color: var(--c-text-2); font-size: 13px; }
.work-card-footer { padding-top: 12px; border-top: 0; }
.work-card-footer > span:last-child { color: var(--c-primary); transition: transform 0.2s var(--ease); }
.work-card:hover .work-card-footer > span:last-child { color: var(--c-primary); transform: translateX(3px); }
.work-card-new { border: 0; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--c-hairline); color: var(--c-text); }
.work-card-new > span:first-child {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 22px;
}
.work-card-new:hover { background: var(--c-surface); box-shadow: var(--shadow-l); }
.work-card-new strong { margin-top: 4px; }

.emoji { border: 0; border-radius: 14px; background: var(--c-muted); box-shadow: none; }

/* 状态徽标 */
.badge { padding: 3px 10px; font-size: 12px; font-weight: 500; }
.badge-accent { background: var(--c-accent-soft); color: #b25000; }
.badge-success { background: var(--c-success-soft); color: var(--c-success); }
.badge-muted { background: var(--c-fill); color: var(--c-text-2); }

/* ---------- 成长路径 ---------- */
.hub-space-card { padding: 32px; border: 0; border-radius: var(--radius); box-shadow: none; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.hub-space-card:hover { box-shadow: var(--shadow-l); transform: scale(1.01); }
.hub-space-icon { border-radius: 14px; background: var(--c-primary-soft); }
.hub-space-heading h3 { font-size: 21px; font-weight: 600; }

.growth-heading { padding: 0 0 40px; text-align: center; }
.growth-heading h1 { margin: 8px 0 14px; font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.growth-heading > p { font-size: 21px; font-weight: 500; color: var(--c-text); }
.growth-heading > p + p { font-size: 17px; font-weight: 400; color: var(--c-text-2); }
.growth-journey { gap: 20px; border: 0; background: none; overflow: visible; }
.growth-journey-card {
  padding: 36px 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.growth-journey-card + .growth-journey-card { border-left: 0; }
.growth-journey-card:hover { background: var(--c-surface); box-shadow: var(--shadow-l); transform: scale(1.01); }
.growth-journey-card .eyebrow { color: var(--c-text-3); font-size: 12px; letter-spacing: 0.04em; }
.growth-journey-card h2 { margin: 10px 0 12px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.growth-journey-card p { font-size: 14px; color: var(--c-text-2); }
.growth-journey-card .hub-link { font-size: 15px; color: var(--c-primary); }
.growth-detail { padding: 40px; border: 0; border-radius: var(--radius-l); box-shadow: none; }
.growth-rule { border-radius: var(--radius-s); background: var(--c-muted); font-size: 14px; }
.growth-stages > li { border-radius: var(--radius-s); background: var(--c-surface); }
.growth-progress-value strong { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; color: var(--c-text); }
.growth-record .progress-track { height: 4px; }
.growth-project-label select { border-radius: var(--radius-s); padding: 8px 12px; }

/* 阶段条：一行时间轴，轨道填充到当前阶段，节点依次出现，当前阶段呼吸光圈。 */
.studio-track-wrap { margin: var(--sp-5) 0; padding: 22px 8px 18px; border-radius: var(--radius-l); background: var(--c-surface); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.studio-track-wrap::-webkit-scrollbar { display: none; }
.studio-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(84px, 1fr)); min-width: calc(var(--n) * 84px); }
.studio-rail { position: absolute; top: 17px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 3px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.studio-rail i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--fill)); background: linear-gradient(90deg, var(--c-success), var(--c-primary)); animation: studio-rail-fill 1.1s cubic-bezier(.22,.8,.24,1) .15s both; }
.studio-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; text-align: center; animation: studio-stage-in .5s cubic-bezier(.22,.8,.24,1) both; animation-delay: calc(var(--i) * 70ms); }
.studio-node { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c-line); background: var(--c-surface); color: var(--c-text-3, #8a8f98); font-size: 14px; font-weight: 600; transition: transform .2s; }
.studio-node svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.studio-stage b { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); line-height: 1.3; }
.studio-stage small { display: block; font-size: 11px; color: var(--c-text-2); }
.studio-stage.pending b { color: var(--c-text-2); font-weight: 500; }
.studio-stage.done .studio-node { border-color: var(--c-success); background: var(--c-success); color: #fff; }
.studio-stage.done small { color: var(--c-success); }
.studio-stage.current .studio-node { border-color: var(--c-primary); background: var(--c-primary); color: #fff; transform: scale(1.12); }
.studio-stage.current .studio-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c-primary); opacity: 0; animation: studio-node-pulse 2s ease-out 1.2s infinite; }
.studio-stage.current small { color: var(--c-primary); font-weight: 600; }
.studio-stage:hover .studio-node { transform: scale(1.12); }
@keyframes studio-rail-fill { from { transform: scaleX(0); } }
@keyframes studio-stage-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes studio-node-pulse { 0% { opacity: .55; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .studio-rail i, .studio-stage, .studio-stage.current .studio-node::after { animation: none; } }
.studio-progress-summary { border-radius: var(--radius-s); }

/* ---------- 开始创造 ---------- */
.path-new-box { max-width: 920px; margin: 8px auto 0; }
.path-new-box > h1 { margin: 8px 0 12px; font-size: clamp(34px, 4.2vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.new-path-intro, .new-coach-hint { font-size: 17px; color: var(--c-text-2); }
.new-coach-hint { font-size: 14px; }
.new-path-options { gap: 16px; margin: 40px 0 16px; }
.new-path-option {
  gap: 10px;
  padding: 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.2s var(--ease), transform 0.3s var(--ease);
}
.new-path-option:hover { box-shadow: var(--shadow-l); transform: scale(1.01); }
.new-path-option .eyebrow { color: var(--c-text-3); font-size: 13px; }
.new-path-option strong { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.new-path-option small { font-size: 14px; color: var(--c-text-2); }
.new-path-option .path-stage-count { font-size: 13px; font-weight: 500; color: var(--c-text-3); }
.new-path-option.selected { border: 0; background: var(--c-surface); box-shadow: inset 0 0 0 2px var(--c-primary); }
.new-path-option.selected .path-stage-count { color: var(--c-primary); }
.new-path-context { padding: 18px 22px; border: 0; border-radius: var(--radius-s); background: #e8e8ed; }
.new-idea-heading { margin-top: 48px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.path-new-box .textarea { min-height: 128px; padding: 18px 20px; border-radius: var(--radius); font-size: 17px; line-height: 1.6; box-shadow: none; }

.chip {
  min-height: 36px;
  padding: 7px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover { border-color: #86868b; color: var(--c-text); background: var(--c-surface); }
.chip.selected { background: var(--c-surface); border-color: var(--c-primary); color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-primary); }

/* ---------- 输入 ---------- */
.input, .textarea, .select {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-surface);
  font-size: 15px;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16); }
.input::placeholder, .textarea::placeholder { color: var(--c-text-3); }

/* ---------- AI 教练对话 ---------- */
.chat-window { max-width: 760px; padding: 32px; border: 0; border-radius: var(--radius-l); box-shadow: none; gap: 14px; }
.msg { padding: 11px 16px; border-radius: 20px; font-size: 15px; line-height: 1.6; }
.msg-ai { background: #e9e9eb; color: var(--c-text); border: 0; border-bottom-left-radius: 6px; border-top-left-radius: 20px; }
.msg-user { background: var(--c-primary); color: #fff; border-bottom-right-radius: 6px; border-top-right-radius: 20px; }
.icard { border: 0; border-left: 0; border-radius: var(--radius); background: var(--c-ai-soft); box-shadow: none; position: relative; overflow: hidden; }
.icard::before { content: none; }

/* ---------- 作品主页 ---------- */
.proj-head { gap: 20px; margin-bottom: 32px; }
.proj-head h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.proj-head .sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--c-text-2); }
.progress-track { height: 4px; background: #e8e8ed; }
.progress-fill { background: var(--c-primary); }

.stepper { padding: 28px 16px 22px; border: 0; border-radius: var(--radius); box-shadow: none; }
.step { padding: 34px 8px 10px; border-radius: var(--radius-s); }
.step::before { top: 2px; width: 24px; height: 24px; border: 0; background: #e8e8ed; color: var(--c-text-2); font-size: 12px; line-height: 24px; }
.step.done::before { line-height: 24px; background: var(--c-success); }
.step.current::before { background: var(--c-primary); color: #fff; box-shadow: 0 0 0 5px var(--c-primary-soft); }
.step + .step::after { top: 13px; height: 2px; background: #e8e8ed; }
.step.done + .step::after { background: var(--c-success); opacity: 0.4; }
.step strong { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.step.current strong { color: var(--c-primary); }
.step.selected { outline: 0; background: var(--c-muted); }

.stage-hint { padding: 14px 18px; border: 0; border-radius: var(--radius-s); background: var(--c-surface); color: var(--c-text); }
.stage-panel { gap: 20px; }
.stage-panel > .card { padding: 32px; }
.task-list li { padding: 12px 0; border-bottom: 1px solid var(--c-hairline); }
.task-list .tick { width: 22px; height: 22px; }
.ai-coact { border: 0; border-radius: var(--radius); background: var(--c-ai-soft); box-shadow: none; padding: 28px; }

/* ---------- 创造工具 / 发布 ---------- */
.tool-suggest { border: 0; border-radius: var(--radius); background: var(--c-ai-soft); box-shadow: none; }
.prompt-box .textarea { border-radius: 14px; background: #fbfbfd; }

.showcase {
  padding: 56px 32px;
  border: 0;
  background: var(--c-surface);
  box-shadow: none;
}
.showcase .cover { display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 26px; background: var(--c-muted); font-size: 52px; }
.showcase h2 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.showcase .journey { flex-wrap: wrap; }
.showcase .journey span { padding: 4px 12px; font-size: 12px; }

/* ---------- 证据 / 广场 / Passport ---------- */
.evidence-card, .optimization-card, .gallery-card { border: 0; border-radius: var(--radius); box-shadow: none; }
.gallery-card { overflow: hidden; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.gallery-card:hover { box-shadow: var(--shadow-l); transform: scale(1.01); }
.gallery-cover { background: var(--c-muted); }
.evidence-summary { border: 0; border-radius: var(--radius); }
.passport-identity { border: 0; border-radius: var(--radius-l); }
.passport-stats .card strong { color: var(--c-text); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- 通用 ---------- */
.card { border: 0; border-radius: var(--radius); box-shadow: none; }
.card:hover { box-shadow: none; }
.empty { padding: 56px 24px; border: 0; border-radius: var(--radius); background: var(--c-surface); color: var(--c-text-2); }
.toast {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-l);
}
.filter-row .chip { min-height: 36px; }
.ws-view :is(a, button):focus-visible, .ws-nav-item:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hub-evidence-card, .work-card, .hub-space-card, .growth-journey-card, .new-path-option, .gallery-card { transition: none; }
  .hub-evidence-card:hover, .work-card:hover, .hub-space-card:hover, .growth-journey-card:hover, .new-path-option:hover, .gallery-card:hover { transform: none; }
}

/* ---------- 矮屏桌面：侧栏不滚动，收紧间距让所有导航项放得下 ---------- */
@media (min-width: 761px) and (max-height: 700px) {
  .ws-sidebar { padding: 14px 12px 12px; }
  .ws-brand { padding-bottom: 12px; margin-bottom: 0; }
  .ws-new { min-height: 32px; margin-bottom: 4px; padding: 5px 14px; }
  .ws-nav-caption { padding: 8px 12px 3px; font-size: 12px; }
  .ws-nav-caption:first-child { padding-top: 4px; }
  .ws-nav-item { min-height: 32px; padding: 5px 12px; }
  .ws-account { padding-top: 10px; }
}
@media (min-width: 761px) and (max-height: 580px) {
  .ws-sidebar { padding: 10px 12px 8px; }
  .ws-brand { padding-bottom: 8px; }
  .ws-brand img { width: 28px; height: 28px; }
  .ws-brand small { display: none; }
  .ws-nav { gap: 1px; }
  .ws-nav-caption { padding: 5px 12px 2px; font-size: 11px; }
  .ws-nav-item { min-height: 28px; padding: 3px 12px; font-size: 13px; }
  .ws-nav-icon { width: 16px; height: 16px; }
  .ws-account { padding-top: 8px; }
}
@media (min-width: 761px) and (max-height: 460px) {
  .ws-nav-caption { display: none; }
  .ws-brand { padding-bottom: 6px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .ws-view { padding: 40px 32px 80px; }
  .hub-current { grid-template-columns: minmax(0, 1fr); }
  .hub-project-symbol { display: none; }
  .home-paths { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-activities { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 760px) {
  .ws-sidebar { padding: 10px 12px; gap: 4px; }
  .ws-brand { padding: 0 10px 0 0; margin: 0; }
  .ws-nav-item { min-height: 36px; padding: 7px 12px; gap: 8px; }
  .ws-nav-icon { width: 16px; height: 16px; }
  .ws-nav-caption { display: none; } /* 横向滚动导航不显示分组标题 */
  .ws-view { padding: 24px 16px 56px; }
  .growth-heading h1, .path-new-box > h1 { font-size: 32px; }
  .growth-journey-card + .growth-journey-card { border-top: 0; }
  .growth-detail { padding: 26px; }
  .proj-head h1 { font-size: 28px; }
  .section-head { margin-top: 48px; }
  .section-head h2 { font-size: 24px; }
}

/* ---------- 修正：空卡片与面板间距 ---------- */
.path-new-box > .card:empty { display: none; }
.stage-panel > .ai-coact { margin-top: 0; }
.stage-panel + .card, .stage-panel + section { margin-top: 20px; }

/* ---------- 窄屏：品牌 + 账号一行，导航横向滚动 ---------- */
@media (max-width: 760px) {
  .ws-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; row-gap: 8px; }
  .ws-brand { order: 1; flex: 1 1 auto; min-width: 0; }
  .ws-brand small { display: none; }
  .ws-account { order: 2; flex: 0 0 auto; margin: 0; padding: 0; border-top: 0; gap: 8px; }
  .ws-account .runtime-status { display: none; }
  .ws-new { order: 3; margin: 0; min-height: 32px; padding: 5px 12px; font-size: 13px; }
  .ws-nav { order: 4; flex: 1 1 100%; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .ws-nav::-webkit-scrollbar { display: none; }
  .ws-nav .ws-nav-item { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .hub-greeting h1 { font-size: 26px; }
  .hub-current { padding: 24px 20px; border-radius: 22px; gap: 0; }
  .hub-current h2 { font-size: 24px; }
  .home-stages li span { display: none; }
  .home-stages li.is-current span { display: block; overflow: visible; }
  .hub-next { flex-direction: column; align-items: stretch; }
  .hub-next .btn { width: 100%; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-panel { padding: 20px; }
  .home-paths { padding: 20px; }
  .home-activities { padding: 20px; }
  .home-activity-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-path-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hub-draft { flex-direction: column; align-items: stretch; }
}

/* 空间还没有作品时，预览接下来要记录的材料。 */
.studio-preview-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: preview; }
.studio-preview-list li { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--c-muted); counter-increment: preview; animation: studio-stage-in .45s cubic-bezier(.22,.8,.24,1) both; animation-delay: calc(.3s + var(--i) * 80ms); }
.studio-preview-list li::before { content: counter(preview); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface); color: var(--c-text-2); font-size: 13px; font-weight: 600; }
.studio-preview-list b { font-size: 14px; font-weight: 600; }
.studio-preview-list span { color: var(--c-text-2); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .studio-preview-list li { animation: none; } }
