/* ==========================================================================
   相成 Coform · 渐变紫色设计系统
   主色：紫罗兰渐变（#7c3aed → #a855f7），深紫夜空面板 + 浅紫雾面背景
   ========================================================================== */
:root {
  /* 文字层级 */
  --ink: #231d38;
  --ink-soft: #413b58;
  --muted: #716c8a;
  --faint: #9c97b2;

  /* 背景与线条 */
  --canvas: #f6f4fc;
  --surface: #ffffff;
  --surface-tint: #faf8ff;
  --line: #e8e3f5;
  --line-strong: #d8d0ee;

  /* 主色：渐变紫 */
  --purple: #6d4aff;
  --purple-deep: #5036c4;
  --violet: #8b5cf6;
  --violet-bright: #a855f7;
  --lilac: #c084fc;
  --violet-soft: #f1ebfe;
  --violet-mist: #f8f4ff;
  --grad: linear-gradient(118deg, #6d4aff 0%, #927bff 100%);
  --grad-bright: linear-gradient(118deg, #927bff 0%, #c1b6ff 100%);

  /* 深色面板（深紫夜空） */
  --night: #1b1233;
  --night-soft: #281b4c;
  --night-line: rgba(255, 255, 255, .1);

  /* 语义色 */
  --green: #0e9f6e;
  --green-soft: #e7f8f1;
  --amber: #9a6206;
  --amber-soft: #fdf3d7;
  --red: #d64545;
  --red-soft: #fdecec;

  /* 阴影（带紫色调） */
  --shadow-sm: 0 2px 10px rgba(103, 63, 200, .06);
  --shadow: 0 14px 34px rgba(103, 63, 200, .1);
  --shadow-lg: 0 28px 64px rgba(76, 29, 149, .18);

  /* 圆角 */
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;

  --sidebar: 276px;
  color-scheme: light;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(139, 92, 246, .24); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d7cfec; border: 3px solid transparent; border-radius: 8px; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #c2b6e4; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, h4 { letter-spacing: -.01em; }

/* ---------- 品牌 ---------- */
.brand { display: flex; align-items: center; gap: 12px; border: 0; padding: 0; background: transparent; color: #fff; text-align: left; }
.brand strong { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .55); font-size: 11px; }
.brand-mark {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 50px; height: 50px; border-radius: 15px;
  background: transparent;
  overflow: visible;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(58, 37, 108, .16)); }

/* ---------- 按钮 ---------- */
.button {
  min-height: 42px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: 13px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, button:focus-visible { outline: 3px solid rgba(139, 92, 246, .3); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(139, 92, 246, .22); outline-offset: 1px; }
.button.primary { color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(124, 58, 237, .32), inset 0 1px 0 rgba(255, 255, 255, .22); }
.button.primary:hover { box-shadow: 0 14px 30px rgba(124, 58, 237, .4), inset 0 1px 0 rgba(255, 255, 255, .22); }
.button.tint { color: var(--purple-deep); border-color: var(--line-strong); background: var(--violet-soft); }
.button.tint:hover { border-color: var(--lilac); }
.button.outline, .button.subtle { color: var(--ink-soft); border-color: var(--line-strong); background: var(--surface); }
.button.outline:hover, .button.subtle:hover { border-color: var(--lilac); color: var(--purple-deep); }
.button.subtle { min-height: 38px; }
.button.large { min-height: 54px; padding: 0 26px; font-size: 15px; border-radius: 11px; }
.button.full { width: 100%; }
.button.ghost-on-dark { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); }
.button.ghost-on-dark:hover { background: rgba(255, 255, 255, .14); }
.button.secondary-dark { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); }
.button.danger-link { color: var(--red); background: transparent; border-color: #f3d3d3; margin-top: 8px; }
.button.danger-link:hover { background: var(--red-soft); }
.text-button { border: 0; padding: 0; background: transparent; color: var(--purple); font-weight: 700; font-size: 13px; }
.text-button:hover { color: var(--violet-bright); }

/* ---------- 引导页（着陆页） ---------- */
.intro-screen {
  position: relative; min-height: 100vh; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(168, 85, 247, .34), transparent 62%),
    radial-gradient(880px 520px at -12% 32%, rgba(124, 58, 237, .28), transparent 58%),
    radial-gradient(720px 720px at 52% 118%, rgba(109, 40, 217, .3), transparent 60%),
    linear-gradient(165deg, #170f2e 0%, #1d133a 52%, #25164a 100%);
}
.intro-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.intro-glow i { position: absolute; border-radius: 50%; filter: blur(72px); }
.intro-glow i:nth-child(1) { width: 540px; height: 540px; top: -170px; right: -90px; background: rgba(168, 85, 247, .5); animation: glow-drift 11s ease-in-out infinite; }
.intro-glow i:nth-child(2) { width: 430px; height: 430px; bottom: 6%; left: -150px; background: rgba(124, 58, 237, .42); animation: glow-drift 13s ease-in-out infinite reverse; }
.intro-glow i:nth-child(3) { width: 300px; height: 300px; top: 36%; left: 44%; background: rgba(192, 132, 252, .3); animation: glow-drift 9s ease-in-out infinite 1.2s; }
@keyframes glow-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-26px, 22px) scale(1.08); } }
.intro-screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px);
  background-size: 34px 34px;
  mask-image: radial-gradient(720px 480px at 70% 12%, black, transparent 72%);
  opacity: .5;
}
.intro-header, .intro-hero, .value-network, .how-it-works, .intro-footer { position: relative; width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.intro-header { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.intro-nav { display: flex; align-items: center; gap: 26px; }
.intro-nav a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 13px; transition: color .15s ease; }
.intro-nav a:hover { color: #fff; }
.intro-hero { display: grid; justify-items: center; text-align: center; padding-block: 88px 84px; }
.intro-copy { max-width: 880px; display: grid; justify-items: center; }
.section-label { color: var(--lilac); text-transform: uppercase; font-weight: 800; font-size: 11px; letter-spacing: .14em; line-height: 1.5; }
.intro-copy h1 { margin: 18px 0 26px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.12; font-weight: 850; }
.intro-copy h1 em { font-style: normal; background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-lead { max-width: 620px; color: rgba(236, 231, 252, .78); font-size: 17px; line-height: 1.85; }
.intro-actions { margin-top: 36px; display: flex; gap: 12px; }
.access-note { margin-top: 18px; color: rgba(214, 205, 238, .55); font-size: 12px; }

/* 着陆页右侧产品预览台 */
.hero-console {
  color: var(--ink); background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; padding: 26px;
  box-shadow: 0 36px 80px rgba(9, 4, 28, .55), 0 0 0 6px rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  width: min(1020px, 100%); margin-top: 64px; text-align: left;
  animation: console-float 7s ease-in-out infinite;
}
@keyframes console-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.console-head, .flow-title, .console-recommendation { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.console-head span { display: block; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.console-head strong { display: block; margin-top: 4px; font-size: 21px; }
.console-head .live-state { color: var(--green); background: var(--green-soft); padding: 7px 12px; border-radius: 999px; font-size: 11px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.hero-metrics article { padding: 15px; background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--r-md); }
.hero-metrics small, .hero-metrics span { display: block; color: var(--muted); font-size: 11px; }
.hero-metrics strong { display: block; margin: 6px 0; font-size: 24px; color: var(--purple-deep); }
.flow-title span { color: var(--purple); font-size: 12px; font-weight: 800; }
.flow-bar, .progress { height: 7px; border-radius: 999px; background: #ece7f9; overflow: hidden; }
.flow-bar { margin: 14px 0 18px; }
.flow-bar i, .progress i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.flow-bar i { width: 42%; }
.console-flow { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.console-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.console-flow li { display: flex; gap: 9px; color: var(--faint); }
.console-flow li b { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #efeaf9; font-size: 11px; }
.console-flow li span { font-size: 12px; font-weight: 800; }
.console-flow li small { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; }
.console-flow li.done b { color: #fff; background: var(--green); }
.console-flow li.active { color: var(--ink); }
.console-flow li.active b { color: #fff; background: var(--grad); box-shadow: 0 4px 12px rgba(124, 58, 237, .35); }
.console-recommendation { margin-top: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(115deg, var(--night-soft), #3b2270); border-radius: var(--r-md); }
.console-recommendation small { display: block; color: var(--lilac); font-size: 11px; }
.console-recommendation strong { display: block; margin-top: 4px; font-size: 13px; }
.console-recommendation > span { color: rgba(233, 222, 255, .65); font-size: 11px; }
.demo-disclosure { margin: 12px 0 -6px; color: var(--faint); text-align: right; font-size: 11px; }

/* 着陆页：平台能力 / 使用方式 */
.value-network, .how-it-works { padding: 96px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading.left { margin-inline: 0; text-align: left; }
.section-heading h2 { margin: 10px 0 14px; color: #fff; font-size: 34px; font-weight: 800; }
.section-heading > p:last-child { color: rgba(226, 218, 248, .62); line-height: 1.85; }
.value-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.intro-actions { flex-wrap: wrap; justify-content: center; }
.intro-card-link { justify-self: start; padding: 8px 0; border: 0; background: transparent; color: #dfc2ff; text-align: left; font-size: 13px; font-weight: 700; }
.intro-card-link:hover { color: #fff; }
.hero-console .hero-metrics strong { font-size: clamp(17px, 2vw, 24px); }
.hero-console .console-recommendation { flex-wrap: wrap; }
.hero-console .console-head .live-state { flex-shrink: 0; }
.hero-console .demo-disclosure { line-height: 1.8; }
.value-rail article { min-height: 224px; padding: 26px 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px); transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.value-rail article:hover { transform: translateY(-5px); border-color: rgba(192, 132, 252, .5); background: rgba(255, 255, 255, .09); box-shadow: 0 20px 44px rgba(9, 4, 28, .38); }
.value-rail b { color: var(--lilac); font-size: 12px; letter-spacing: .1em; }
.value-rail h3 { margin: 30px 0 12px; font-size: 18px; }
.value-rail p, .role-lines p { color: rgba(216, 208, 240, .62); line-height: 1.8; font-size: 13px; }
.role-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-lines article { display: grid; gap: 10px; align-content: start; padding: 26px 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); backdrop-filter: blur(6px); transition: transform .2s ease, border-color .2s ease; }
.role-lines article:hover { transform: translateY(-4px); border-color: rgba(192, 132, 252, .45); }
.role-lines span { color: var(--lilac); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.role-lines strong { font-size: 17px; }
.role-lines p { margin: 0; }
.intro-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 44px; color: rgba(206, 196, 232, .45); font-size: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }

/* ---------- 产品骨架：侧边栏 ---------- */
.product-shell { min-height: 100vh; background: var(--canvas); }
.sidebar {
  position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(308px, 86vw);
  padding: 24px 16px 18px; display: flex; flex-direction: column; overflow-y: auto; color: #fff;
  background:
    radial-gradient(420px 300px at 110% -6%, rgba(168, 85, 247, .3), transparent 62%),
    linear-gradient(178deg, #22163f 0%, #1a1132 55%, #201540 100%);
  border-right: 1px solid rgba(255, 255, 255, .07);
  transform: translateX(-103%); transition: transform .26s cubic-bezier(.32, .72, .24, 1);
  box-shadow: none;
}
.sidebar.open { transform: translateX(0); box-shadow: 48px 0 96px rgba(23, 13, 46, .5); }
.sidebar .brand { padding: 0 6px; }
.workspace-nav-card { margin: 0 0 20px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(105deg, var(--violet-mist), var(--surface) 60%); box-shadow: var(--shadow-sm); }
.workspace-nav-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.workspace-nav-head strong, .workspace-nav-head small { display: block; }
.workspace-nav-head strong { font-size: 15px; color: var(--ink); }
.workspace-nav-head small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.workspace-nav-label { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.role-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #ece6f9; border: 1px solid var(--line); border-radius: 999px; }
.role-switch button { min-height: 36px; padding: 0 14px; color: var(--muted); border: 0; border-radius: 999px; background: transparent; font-size: 12px; font-weight: 700; transition: color .15s ease; }
.role-switch button:hover { color: var(--purple-deep); }
.role-switch button.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(124, 58, 237, .4); }
.workspace-entry {
  position: relative; width: 100%; min-height: 62px; margin-top: 10px;
  display: grid; grid-template-columns: 34px 1fr 18px; grid-template-rows: 1fr 1fr; gap: 0 10px; align-items: center;
  padding: 10px 14px; color: var(--ink); text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.workspace-entry:hover { border-color: var(--lilac); box-shadow: var(--shadow-sm); }
.workspace-entry > span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--grad); font-size: 11px; font-weight: 850; }
.workspace-entry b { grid-column: 2; grid-row: 1; align-self: end; white-space: nowrap; font-size: 13px; }
.workspace-entry small { grid-column: 2; grid-row: 2; align-self: start; margin-top: 3px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.workspace-entry i { grid-column: 3; grid-row: 1 / 3; color: var(--purple); font-style: normal; font-size: 18px; }
.module-label { padding: 0 8px 10px; }
.module-label strong, .module-label small { display: block; }
.module-label strong { font-size: 12px; }
.module-label small { margin-top: 4px; color: rgba(214, 203, 242, .45); font-size: 11px; }
.role-context { margin: 28px 0 18px; padding: 16px; background: var(--night-soft); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); }
.role-context small, .role-context span { display: block; color: rgba(224, 214, 248, .6); font-size: 11px; }
.role-context strong { display: block; margin: 7px 0 5px; font-size: 14px; }

/* 侧边导航 */
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav button {
  position: relative; width: 100%; min-height: 62px;
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr 1fr; gap: 0 11px; align-items: center;
  padding: 9px 11px; color: rgba(235, 228, 252, .72); text-align: left;
  border: 1px solid transparent; border-radius: var(--r-md); background: transparent;
  transition: background .15s ease, color .15s ease;
}
.side-nav button > span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; color: rgba(228, 219, 250, .6); background: rgba(255, 255, 255, .07); border-radius: 9px; font-size: 11px; font-weight: 850; }
.side-nav button b { align-self: end; font-size: 14px; }
.side-nav button small { align-self: start; margin-top: 3px; color: rgba(216, 206, 242, .45); font-size: 11px; }
.side-nav button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side-nav button.active { color: #fff; border-color: rgba(192, 132, 252, .4); background: linear-gradient(100deg, rgba(139, 92, 246, .34), rgba(168, 85, 247, .16)); }
.side-nav button.active::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; background: var(--grad-bright); border-radius: 3px; }
.side-nav button.active > span { color: #fff; background: var(--grad); box-shadow: 0 4px 12px rgba(124, 58, 237, .4); }
.side-nav button.active small { color: rgba(240, 233, 255, .65); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); background: rgba(255, 255, 255, .04); }
.sidebar-foot .signal { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12px; }
.sidebar-foot small { margin-top: 3px; color: rgba(216, 206, 242, .5); font-size: 11px; }

/* ---------- 顶部应用栏 ---------- */
.workspace-main { margin-left: 0; min-width: 0; }
.appbar {
  position: sticky; top: 0; z-index: 30; min-height: 68px; padding: 10px clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(103, 63, 200, .07);
  backdrop-filter: blur(18px);
}
.appbar .brand { color: var(--ink); flex: 0 0 auto; }
.appbar .brand small { color: var(--muted); }
.appbar .brand-mark { width: 46px; height: 46px; border-radius: 13px; }
.appbar-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; padding: 5px; background: rgba(241, 235, 254, .7); border: 1px solid var(--line); border-radius: 999px; }
.appbar-nav button { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.appbar-nav button b { font-size: 10px; font-weight: 850; color: var(--faint); letter-spacing: .04em; }
.appbar-nav button:hover { color: var(--ink); }
.appbar-nav button.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(124, 58, 237, .32); }
.appbar-nav button.active b { color: rgba(255, 255, 255, .75); }
.appbar-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }

/* 页面标题条 */
.page-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.page-head p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.page-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.notification-button, .account-button { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 700; transition: border-color .15s ease; }
.notification-button:hover, .account-button:hover { border-color: var(--lilac); }
.notification-button { padding: 0 14px; }
.notification-button span { margin-left: 6px; min-width: 21px; height: 21px; display: inline-grid; place-items: center; color: #fff; border-radius: 999px; background: var(--grad); font-size: 11px; }
.account-button { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; }
.account-button span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--grad); border-radius: 8px; font-size: 12px; }
.mobile-menu { display: none; }

/* ---------- 工作台视图 ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 8px 32px 64px; }
.welcome-strip {
  padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background:
    radial-gradient(520px 220px at 92% 0%, rgba(192, 132, 252, .4), transparent 60%),
    linear-gradient(112deg, #241547 0%, #4c1d95 58%, #7c3aed 100%);
}
.welcome-strip p, .view-heading p { margin: 0 0 6px; color: var(--lilac); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.welcome-strip h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.welcome-strip span { color: rgba(236, 229, 252, .75); font-size: 13px; }
.step-flow { min-height: 130px; display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: center; padding: 22px 28px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); }
.step-flow article { display: flex; align-items: center; gap: 13px; }
.step-flow article > b { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--faint); border-radius: 50%; background: #f0ecf9; font-size: 17px; }
.step-flow article strong, .step-flow article span { display: block; }
.step-flow article strong { font-size: 14px; }
.step-flow article span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.step-flow article.active > b { color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(124, 58, 237, .32); }
.step-flow > i { height: 2px; background: linear-gradient(90deg, var(--line), var(--line-strong)); border-radius: 2px; }

/* 仪表盘面板 */
.dashboard-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.plan-panel, .ai-insight { min-height: 330px; padding: 26px; }
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.panel-head small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.panel-head h3 { margin: 6px 0 0; font-size: 18px; font-weight: 800; }
.metric-accent { color: var(--purple); font-size: 26px; font-weight: 850; }
.plan-panel > .progress { margin: 24px 0; }
.next-action { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-action small, .next-action strong { display: block; }
.next-action small { color: var(--muted); font-size: 11px; }
.next-action strong { margin-top: 5px; font-size: 13px; }
.funnel-list { margin: 18px 0 0; }
.funnel-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin-top: 12px; }
.funnel-list dt { font-size: 12px; color: var(--ink-soft); }
.funnel-list dd { margin: 0; display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: center; }
.funnel-list dd > i { position: relative; display: block; height: 7px; overflow: hidden; background: #efeaf9; border-radius: 999px; }
.funnel-list dd > i::after { content: ""; display: block; width: inherit; height: 100%; border-radius: 999px; background: var(--grad); }
.funnel-list b { text-align: right; font-size: 12px; }
.confidence { color: var(--green); background: var(--green-soft); padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.ai-insight > p { min-height: 90px; margin: 24px 0; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.ai-insight dl { margin: 0 0 16px; }
.ai-insight dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; }
.ai-insight dt { color: var(--muted); }
.ai-insight dd { margin: 0; }
.recent-panel { margin-top: 20px; padding: 22px 24px; }
.compact-task-list { margin-top: 14px; border-top: 1px solid var(--line); }
.compact-task { min-height: 60px; display: grid; grid-template-columns: minmax(220px, 1.6fr) .7fr .6fr 90px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); font-size: 12px; }
.compact-task strong { font-size: 13px; }
.compact-task span { color: var(--muted); }

/* ---------- 视图标题与子导航 ---------- */
.view-heading { min-height: 106px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.view-heading h2 { margin: 0 0 8px; font-size: 28px; font-weight: 850; }
.view-heading span { color: var(--muted); font-size: 13px; }
.module-subnav { display: flex; gap: 28px; margin: 0 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.module-subnav button { position: relative; min-height: 54px; flex: 0 0 auto; padding: 0 2px; color: var(--muted); border: 0; background: transparent; font-size: 13px; font-weight: 700; transition: color .15s ease; }
.module-subnav button:hover { color: var(--ink); }
.module-subnav button.active { color: var(--purple); }
.module-subnav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }
.learning-panel { animation: panel-in .2s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 学习中心 ---------- */
.learning-next { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; border-color: var(--line-strong); background: linear-gradient(105deg, var(--violet-mist), var(--surface) 65%); }
.learning-next small, .tutor-setup > small { color: var(--purple); font-weight: 800; letter-spacing: .06em; }
.learning-next h3 { margin: 8px 0; font-size: 19px; }
.learning-next p { margin: 0; color: var(--muted); font-size: 12px; }
.learning-overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 20px; }
.learning-path, .learning-metrics, .assessment-copy, .assessment-card, .library-panel, .profile-stats, .profile-tags { padding: 24px; }
.learning-path ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; margin: 24px 0 0; padding: 0; }
.learning-path li { display: flex; gap: 10px; color: var(--faint); }
.learning-path li b { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f0ecf9; font-size: 11px; }
.learning-path li span { font-size: 12px; font-weight: 700; }
.learning-path li small { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; font-weight: 500; }
.learning-path li.done b { color: #fff; background: var(--green); }
.learning-path li.active { color: var(--purple); }
.learning-path li.active b { color: #fff; background: var(--grad); box-shadow: 0 5px 14px rgba(124, 58, 237, .3); }
.learning-metrics dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 22px 0 0; overflow: hidden; border: 1px solid var(--line); background: var(--line); border-radius: var(--r-md); }
.learning-metrics dl > div { padding: 15px; background: var(--surface); }
.learning-metrics dt { color: var(--muted); font-size: 11px; }
.learning-metrics dd { margin: 5px 0 0; font-size: 19px; font-weight: 850; color: var(--purple-deep); }
.learning-recommend { grid-column: 1 / -1; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; color: #fff; border-radius: var(--r-lg); background: linear-gradient(115deg, #2a1552, #7c3aed); }
.learning-recommend small { color: var(--lilac); }
.learning-recommend h3 { margin: 6px 0 0; font-size: 17px; }
.learning-recommend .button.tint { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .12); }
.learning-next-copy { min-width: 0; }
.learning-goal-control { width: min(520px, 100%); grid-template-columns: auto minmax(180px, 1fr); align-items: center; gap: 12px; margin: 8px 0 14px; }
.learning-goal-control span { color: var(--muted); font-size: 12px; }
.learning-goal-control select { min-height: 38px; }

/* 测评 / 资料库 / 能力档案 */
.assessment-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px; }
.assessment-copy > p { color: var(--muted); line-height: 1.75; }
.assessment-copy dl { margin: 22px 0 0; }
.assessment-copy dl > div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.assessment-card > span { color: var(--purple); font-size: 11px; font-weight: 800; }
.assessment-card h3 { margin: 14px 0 20px; line-height: 1.55; }
.assessment-card label { display: flex; grid-template-columns: none; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s ease, background .15s ease; }
.assessment-card label:hover { border-color: var(--lilac); background: var(--violet-mist); }
.assessment-intro { margin: 0 0 22px; color: var(--muted); line-height: 1.75; }
.assessment-options { display: grid; gap: 9px; margin-bottom: 18px; }
.assessment-options label { margin: 0; cursor: pointer; }
.assessment-options label.correct { border-color: #94d4b0; background: #edf9f1; }
.assessment-options label.wrong { border-color: #efaaaa; background: var(--red-soft); }
.assessment-question-progress { height: 4px; margin: 12px 0 4px; overflow: hidden; border-radius: 999px; background: var(--line); }
.assessment-question-progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.assessment-explanation { margin: 0 0 18px; padding: 14px 16px; color: var(--ink-soft); border-left: 3px solid var(--purple); background: var(--violet-mist); border-radius: var(--r-sm); line-height: 1.7; }
.assessment-explanation strong { display: block; color: var(--purple-deep); }
.assessment-result { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 0; color: var(--purple); }
.assessment-result strong { font-size: 54px; line-height: 1; }
.assessment-result.passed { color: var(--green); }
.assessment-card input { width: auto; min-height: auto; accent-color: var(--purple); }
.library-list { margin-top: 16px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.library-list article { min-height: 90px; display: grid; grid-template-columns: 46px 1fr 64px; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); }
.library-list article > b { color: var(--purple); }
.library-list strong { font-size: 14px; }
.library-list p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.library-list span { color: var(--purple-deep); background: var(--violet-soft); padding: 6px 8px; border-radius: 999px; text-align: center; font-size: 11px; }
.profile-showcase { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.profile-identity { min-height: 230px; display: flex; align-items: center; gap: 18px; padding: 30px; color: #fff; border-radius: var(--r-lg); background: linear-gradient(140deg, #241547, #6d28d9); }
.profile-avatar { width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--grad-bright); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); font-size: 27px; font-weight: 850; }
.profile-identity small { color: var(--lilac); }
.profile-identity h3 { margin: 8px 0; font-size: 21px; }
.profile-identity p { color: rgba(235, 228, 252, .7); line-height: 1.65; font-size: 12px; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); overflow: hidden; }
.profile-stats > div { display: grid; place-content: center; min-height: 92px; background: var(--surface); text-align: center; }
.profile-stats span { color: var(--muted); font-size: 11px; }
.profile-stats strong { margin-top: 6px; color: var(--purple); font-size: 23px; }
.profile-tags { grid-column: 1 / -1; }
.profile-tags div { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.profile-tags span { padding: 8px 12px; color: var(--purple-deep); background: var(--violet-soft); border-radius: 999px; font-size: 12px; font-weight: 700; }
.profile-tags p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

/* AI 导师 */
.tutor-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.tutor-setup { align-self: start; padding: 26px; color: #fff; border-radius: var(--r-lg); background: linear-gradient(150deg, #211345, #43227f); }
.tutor-setup h3 { margin: 8px 0; }
.tutor-setup p { color: rgba(232, 224, 250, .66); font-size: 12px; line-height: 1.75; }
.tutor-setup .button { width: 100%; margin-top: 10px; color: #f0e9ff; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); }
.tutor-setup .button:hover { background: rgba(255, 255, 255, .16); }
.tutor-chat { min-height: 470px; padding: 24px; display: flex; flex-direction: column; }
.tutor-message { padding: 16px 18px; border-left: 3px solid var(--violet); background: var(--violet-mist); border-radius: var(--r-sm); }
.tutor-message small { color: var(--purple); font-weight: 800; }
.tutor-message p { margin: 7px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.tutor-message ol { margin: 10px 0; padding-left: 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.tutor-message span { color: var(--faint); font-size: 11px; }
.tutor-message.pending { opacity: .75; }
.tutor-message.error { border-left-color: var(--red); background: var(--red-soft); }
.tutor-result { display: grid; gap: 10px; margin: 12px 0; }
.tutor-chat label { margin-top: auto; }

/* 行动引导条 / 课程 */
.action-guide { min-height: 96px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(105deg, var(--violet-mist), var(--surface) 62%); }
.action-guide div > * { display: block; }
.action-guide small { color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.action-guide strong { margin: 6px 0; font-size: 15px; }
.action-guide span { color: var(--muted); font-size: 12px; }
.learning-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-top: 24px; }
.learning-progress { align-self: start; padding: 24px; color: #fff; background: linear-gradient(160deg, var(--night-soft), #3a2072); border-radius: var(--r-lg); }
.learning-progress > span { color: var(--lilac); font-size: 11px; }
.learning-progress > strong { display: block; margin: 8px 0 18px; font-size: 20px; }
.learning-progress .progress { background: rgba(255, 255, 255, .16); }
.learning-progress .progress i { background: var(--grad-bright); }
.learning-progress p { color: rgba(230, 222, 250, .66); font-size: 12px; line-height: 1.75; }
.learning-progress dl { margin: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.learning-progress dl > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 12px; }
.learning-progress dt { color: rgba(224, 214, 248, .6); }
.learning-progress dd { margin: 0; font-weight: 800; }

.tab-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-row button { min-height: 38px; padding: 0 15px; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; transition: all .15s ease; }
.tab-row button:hover { border-color: var(--lilac); color: var(--purple-deep); }
.tab-row button.active { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 5px 14px rgba(124, 58, 237, .28); }
.course-list { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.course-card { min-height: 178px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.course-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.course-card header { display: flex; justify-content: space-between; gap: 12px; }
.course-card .course-kind { color: var(--purple); font-size: 11px; font-weight: 800; }
.course-card .course-time { color: var(--muted); font-size: 11px; }
.course-card h3 { margin: 18px 0 10px; font-size: 16px; }
.course-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.course-card-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 14px; }
.course-card-progress span { color: var(--faint); font-size: 11px; }
.course-card footer { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.course-card footer span { color: var(--violet); font-size: 11px; }
.course-card footer button { border: 0; padding: 0; color: var(--purple); background: transparent; font-size: 12px; font-weight: 800; }

/* ---------- 课程播放器 ---------- */
.course-modal-card { height: min(900px, calc(100vh - 36px)); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.course-modal-head { display: flex; justify-content: space-between; gap: 24px; padding: 28px 70px 20px 28px; }
.course-modal-head h2 { margin: 7px 0 8px; font-size: 23px; }
.course-modal-head p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.course-modal-head > strong { flex: 0 0 auto; color: var(--purple); font-size: 24px; }
.course-modal-card > .progress { margin: 0 28px; }
.course-player { min-height: 0; flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); margin-top: 22px; overflow: hidden; border-top: 1px solid var(--line); }
.course-lesson-nav { overflow-y: auto; padding: 18px 12px; background: #f7f5fb; border-right: 1px solid var(--line); }
.course-lesson-nav button { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 12px; border: 0; border-radius: var(--r-sm); color: var(--ink-soft); background: transparent; text-align: left; }
.course-lesson-nav button:hover, .course-lesson-nav button.active { color: var(--purple-deep); background: var(--surface); box-shadow: var(--shadow-sm); }
.course-lesson-nav button b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: #ebe7f4; font-size: 11px; }
.course-lesson-nav button.active b { color: #fff; background: var(--grad); }
.course-lesson-nav button.done b { color: #fff; background: var(--green); }
.course-lesson-nav button span { font-size: 12px; font-weight: 750; }
.course-lesson-nav button small { display: block; margin-top: 2px; color: var(--faint); font-weight: 500; }
.course-lesson-content { overflow-y: auto; padding: 30px 34px 34px; }
.course-lesson-content > small { color: var(--purple); font-weight: 800; }
.course-lesson-content h3 { margin: 7px 0 12px; font-size: 21px; }
.course-lesson-content .lesson-intro { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.course-lesson-content section { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.course-lesson-content h4 { margin: 0 0 10px; font-size: 14px; }
.course-lesson-content ul { margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.9; }
.lesson-heading { padding-bottom: 4px; }
.lesson-heading > small { color: var(--purple); font-weight: 800; }
.course-reading-lead { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--purple); background: var(--violet-mist); }
.course-reading-lead b { color: var(--purple-deep); font-size: 12px; }
.course-reading-lead p, .lesson-explanation p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.lesson-point-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lesson-point-grid article { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.lesson-point-grid article:last-child { border-right: 0; }
.lesson-point-grid b { color: var(--violet); font-size: 11px; }
.lesson-point-grid p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.lesson-step-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lesson-step-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; color: var(--ink-soft); font-size: 13px; }
.lesson-step-list li b { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--grad); font-size: 11px; }
.course-lesson-content .lesson-case { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px; border: 0; background: linear-gradient(110deg, #29184d, #5b2fa0); color: #fff; }
.lesson-case small, .lesson-practice small { color: var(--lilac); font-size: 11px; font-weight: 800; }
.lesson-case h4 { margin-top: 5px; color: #fff; }
.lesson-case p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 12px; line-height: 1.8; }
.lesson-knowledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.course-lesson-content .lesson-knowledge-grid section { margin: 0; padding: 18px 0 0; }
.lesson-pitfalls li::marker { color: var(--red); }
.lesson-checklist li::marker, .lesson-outcomes li::marker { color: var(--green); }
.lesson-outcomes { background: #f7fbf8; padding: 18px 20px !important; border: 1px solid #d8ecdf !important; }
.lesson-practice { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px !important; border: 1px solid var(--line-strong) !important; background: var(--violet-mist); }
.lesson-practice h4 { margin-top: 5px; }
.lesson-practice p { margin: 0; color: var(--ink-soft); font-weight: 700; line-height: 1.75; }
.lesson-practice > span { grid-column: 2; color: var(--muted); font-size: 11px; }
.lesson-complete-action { position: sticky; bottom: -34px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 28px -34px -34px; padding: 16px 34px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); }
.lesson-complete-action p { margin: 0; color: var(--muted); font-size: 11px; }
.lesson-complete-action .button { flex: 0 0 auto; }

/* ---------- 工具栏与表单控件 ---------- */
.toolbar { display: grid; grid-template-columns: minmax(320px, 1fr) 190px 170px; gap: 12px; margin: 22px 0; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); transition: border-color .15s ease, box-shadow .15s ease; }
.search-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }
.search-field span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; min-height: 42px; }
input, textarea, select { width: 100%; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
input, select { min-height: 44px; padding: 0 13px; }
textarea { padding: 11px 13px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); outline: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.toolbar select { color: var(--ink-soft); font-size: 12px; }
label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.form-note, .form-status { color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-status { min-height: 14px; color: var(--red); }

/* ---------- 需求登记 ---------- */
.task-list { display: grid; gap: 12px; }
.task-card { display: grid; grid-template-columns: minmax(0, 1fr) 180px 130px; gap: 22px; align-items: center; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.task-card:hover, .resource-row:hover { transform: translateY(-2px); border-color: var(--lilac); box-shadow: var(--shadow); }
.task-card header { display: flex; gap: 8px; align-items: center; }
.task-card h3 { margin: 10px 0 8px; font-size: 16px; }
.task-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.tag { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; color: var(--purple-deep); background: var(--violet-soft); border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag.demo { color: var(--amber); background: var(--amber-soft); }
.task-meta { display: grid; gap: 7px; font-size: 12px; }
.task-meta span { color: var(--muted); }
.task-meta strong { display: block; margin-top: 2px; color: var(--ink); font-size: 12px; }
.task-actions { display: grid; gap: 8px; }
.status-open { color: var(--green); font-weight: 800; font-size: 12px; }

/* ---------- 资源目录 ---------- */
.resource-summary, .project-summary, .workflow-summary { display: grid; grid-template-columns: 150px 150px 150px 1fr; gap: 1px; margin: 22px 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.resource-summary > div, .resource-summary > p,
.project-summary > div, .project-summary > p,
.workflow-summary > div, .workflow-summary > p { margin: 0; padding: 18px; background: var(--surface); }
.resource-summary strong, .resource-summary span,
.project-summary strong, .project-summary span,
.workflow-summary strong, .workflow-summary span { display: block; }
.resource-summary strong, .project-summary strong, .workflow-summary strong { font-size: 24px; font-weight: 850; color: var(--purple-deep); }
.resource-summary span, .project-summary span, .workflow-summary span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.resource-summary p, .project-summary p, .workflow-summary p { display: flex; align-items: center; color: var(--muted); line-height: 1.65; font-size: 11px; }
.resource-tabs { margin-bottom: 14px; }
.resource-list { display: grid; gap: 12px; }
.resource-row { display: grid; grid-template-columns: 46px minmax(250px, 1.2fr) minmax(240px, 1fr) 180px 120px; gap: 18px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.rank-number { color: var(--faint); font-size: 20px; font-weight: 850; }
.resource-main h3 { margin: 0 0 8px; font-size: 15px; }
.resource-main p, .resource-services p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.resource-main .tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.resource-services strong { display: block; margin-bottom: 5px; font-size: 12px; }
.resource-group-label { display: inline-flex; margin-bottom: 8px; padding: 5px 9px; color: var(--purple-deep); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--violet-soft); font-size: 11px; font-weight: 800; }
.score-block { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.score-block strong { color: var(--purple); font-size: 23px; font-weight: 850; }
.score-block small { color: var(--muted); font-size: 11px; }
.score-bar { height: 6px; margin-top: 6px; background: #efeaf9; border-radius: 999px; overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.resource-commercial strong, .resource-commercial span { display: block; }
.resource-commercial strong { font-size: 13px; }
.resource-commercial span { margin-top: 5px; color: var(--muted); font-size: 11px; }

/* ---------- 项目展示 ---------- */
.project-list { display: grid; gap: 14px; }
.project-card { display: grid; grid-template-columns: minmax(320px, 1.35fr) minmax(250px, .9fr) minmax(220px, .75fr); gap: 22px; align-items: stretch; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.project-card:hover { border-color: var(--lilac); box-shadow: var(--shadow); transform: translateY(-2px); }
.project-identity { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-content: start; }
.project-logo { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--grad); border-radius: 13px; box-shadow: 0 8px 18px rgba(124, 58, 237, .28); font-size: 16px; font-weight: 850; }
.project-logo.large { width: 68px; height: 68px; font-size: 18px; }
.project-identity header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.project-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; color: var(--amber); background: var(--amber-soft); border-radius: 999px; font-size: 11px; font-weight: 800; }
.project-status.verified { color: var(--green); background: var(--green-soft); }
.project-identity h3 { margin: 10px 0 6px; font-size: 17px; }
.project-identity p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-identity .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.project-proof { display: grid; align-content: start; gap: 12px; padding-left: 22px; border-left: 1px solid var(--line); }
.project-proof > small, .project-live > small { color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.project-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-metrics span { min-height: 60px; padding: 11px 12px; background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--r-md); }
.project-metrics strong, .project-metrics small { display: block; }
.project-metrics strong { color: var(--ink); font-size: 13px; }
.project-metrics small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.project-progress { display: grid; gap: 8px; }
.project-progress div { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 11px; }
.project-progress .progress { width: 100%; }
.project-live { display: grid; align-content: start; gap: 10px; padding-left: 22px; border-left: 1px solid var(--line); }
.project-live > div { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.project-live span, .project-live strong, .project-live small { display: block; }
.project-live span { color: var(--muted); font-size: 11px; }
.project-live strong { margin: 4px 0; font-size: 12px; }
.project-live small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.project-live .button { width: 100%; margin-top: auto; }

/* 项目详情弹窗 */
.project-detail-dialog { width: min(1000px, calc(100% - 28px)); }
.project-detail-card { padding: 32px; }
.project-detail-hero { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.project-detail-hero h2 { margin: 7px 0; font-size: 25px; }
.project-detail-hero p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.project-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project-detail-meta span { padding: 6px 10px; color: var(--purple-deep); background: var(--violet-soft); border-radius: 999px; font-size: 11px; font-weight: 700; }
.project-detail-about { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; margin-top: 24px; }
.project-detail-about article, .project-detail-about dl, .project-detail-grid > section, .project-task-section { margin: 0; padding: 20px; background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--r-md); }
.project-detail-about h3, .project-detail-grid h3, .project-task-section h3 { margin: 0 0 12px; font-size: 14px; }
.project-detail-about article p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.project-detail-about dl { display: grid; gap: 10px; }
.project-detail-about dl div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.project-detail-about dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.project-detail-about dt { color: var(--muted); }
.project-detail-about dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.project-detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.project-detail-metrics div { padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.project-detail-metrics strong, .project-detail-metrics span { display: block; }
.project-detail-metrics strong { font-size: 18px; color: var(--purple-deep); }
.project-detail-metrics span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.project-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.milestone-list, .activity-list, .project-task-list { display: grid; gap: 10px; }
.milestone-list article, .activity-list article, .project-task-list article { padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.milestone-list header, .activity-list header, .project-task-list header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.milestone-list strong, .activity-list strong, .project-task-list strong { font-size: 12px; }
.milestone-list span, .activity-list span, .project-task-list span { color: var(--muted); font-size: 11px; }
.milestone-list article > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.milestone-list article > strong { display: block; margin-bottom: 8px; }
.milestone-list .progress { margin: 8px 0 6px; }
.activity-list article { display: grid; grid-template-columns: 78px 1fr; gap: 12px; }
.activity-list time { color: var(--purple); font-size: 11px; font-weight: 700; }
.activity-list article div { display: grid; gap: 4px; }
.activity-list p, .project-task-list p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-task-section { margin-top: 18px; }
.project-task-section > header { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 12px; }
.project-task-section > header h3 { margin: 0; }
.project-task-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.project-task-list aside { display: grid; justify-items: end; gap: 5px; }
.project-task-list aside b { color: var(--green); font-size: 11px; }
.muted-empty { margin: 0; padding: 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); font-size: 12px; text-align: center; }

/* ---------- Agent 市场 ---------- */
.workflow-toolbar { grid-template-columns: 1fr 230px; }
.workflow-list { display: grid; gap: 12px; }
.workflow-card { display: grid; grid-template-columns: 50px minmax(270px, 1.35fr) minmax(180px, .75fr) minmax(180px, .7fr) 132px; gap: 18px; align-items: center; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.workflow-card:hover { border-color: var(--lilac); box-shadow: var(--shadow); transform: translateY(-2px); }
.workflow-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: var(--grad); box-shadow: 0 8px 18px rgba(124, 58, 237, .28); font-size: 12px; font-weight: 900; }
.workflow-main header, .workflow-main .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.workflow-main h3 { margin: 10px 0 6px; font-size: 16px; }
.workflow-main p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.workflow-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.workflow-proof span { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-tint); }
.workflow-proof small, .workflow-proof strong { display: block; overflow-wrap: anywhere; }
.workflow-proof small { color: var(--muted); font-size: 11px; }
.workflow-proof strong { margin-top: 4px; font-size: 12px; }
.workflow-commercial { display: grid; gap: 8px; }
.workflow-commercial span { color: var(--muted); font-size: 11px; }
.workflow-commercial span strong { display: block; margin-top: 2px; color: var(--ink); font-size: 12px; }
.workflow-commercial > b { color: var(--purple); font-size: 14px; }
.workflow-actions { display: grid; gap: 8px; }
.workflow-detail-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 0 48px 20px 0; border-bottom: 1px solid var(--line); }
.workflow-detail-hero h2 { margin: 6px 0 8px; }
.workflow-detail-hero span { color: var(--muted); font-size: 12px; }
.workflow-detail-summary { margin: 18px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.workflow-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.workflow-detail-grid section { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-tint); }
.workflow-detail-grid small { color: var(--purple); font-weight: 800; }
.workflow-detail-grid p { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; white-space: pre-line; }
.workflow-detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.workflow-detail-metrics div { padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--violet-mist); }
.workflow-detail-metrics span, .workflow-detail-metrics strong { display: block; }
.workflow-detail-metrics span { color: var(--muted); font-size: 11px; }
.workflow-detail-metrics strong { margin-top: 5px; font-size: 14px; color: var(--purple-deep); }

/* ---------- AI 需求诊断 ---------- */
.engine-label { padding: 9px 12px; color: var(--purple) !important; background: var(--violet-soft); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11px; font-weight: 800; }
.advisor-grid { display: grid; grid-template-columns: 390px 1fr; gap: 20px; margin-top: 22px; }
.advisor-form { align-self: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.advisor-form h3 { margin: 0 0 20px; }
.advisor-results { min-height: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.empty-state { min-height: 560px; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--grad); border-radius: 15px; box-shadow: 0 10px 24px rgba(124, 58, 237, .32); font-weight: 850; }
.empty-state h3 { margin: 18px 0 8px; }
.empty-state p { max-width: 480px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.panel.empty-state { min-height: 220px; }
.result-content { padding: 26px; }
.result-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.result-heading small { color: var(--purple); font-weight: 800; }
.result-heading h3 { margin: 6px 0 0; font-size: 20px; }
.result-heading strong { color: var(--green); }
.diagnosis-copy { color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.diagnosis-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.diagnosis-facts div { padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--violet-mist); }
.diagnosis-facts small, .diagnosis-facts strong { display: block; }
.diagnosis-facts small { color: var(--muted); font-size: 11px; }
.diagnosis-facts strong { margin-top: 6px; font-size: 12px; line-height: 1.55; }
.diagnosis-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.diagnosis-section h4 { margin: 0 0 12px; font-size: 13px; }
.diagnosis-section ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
.diagnosis-section.warning { padding: 16px; border: 1px solid #f0dcae; border-radius: var(--r-md); background: var(--amber-soft); }
.diagnosis-cta { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; color: #fff; border-radius: var(--r-md); background: linear-gradient(112deg, #2a1552, #6d28d9); }
.diagnosis-cta strong, .diagnosis-cta span { display: block; }
.diagnosis-cta strong { font-size: 13px; }
.diagnosis-cta span { margin-top: 5px; color: rgba(232, 224, 250, .66); font-size: 11px; }
.action-list { margin: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.action-list div { padding: 14px; color: var(--ink-soft); background: var(--violet-mist); border-left: 3px solid var(--violet); border-radius: var(--r-sm); font-size: 12px; line-height: 1.6; }
.match-results { margin-top: 22px; }
.match-results > h4 { margin-bottom: 10px; }
.match-card { display: grid; grid-template-columns: 56px 1fr 110px; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.match-card > strong { color: var(--purple); font-size: 21px; font-weight: 850; }
.match-card h5 { margin: 0 0 4px; font-size: 13px; }
.match-card p { margin: 0; color: var(--muted); font-size: 11px; }
.match-card button { min-height: 36px; }

/* ---------- 弹窗 ---------- */
.modal { width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(880px, calc(100% - 28px)); }
.modal.account-center-modal { width: min(940px, calc(100% - 28px)); }
.modal::backdrop { background: rgba(23, 13, 46, .6); backdrop-filter: blur(6px); }
.modal-card { position: relative; max-height: calc(100vh - 36px); overflow: auto; padding: 30px; }
.modal-card > h2 { margin: 8px 0 10px; font-size: 24px; font-weight: 800; }
.modal-card > p:not(.section-label):not(.form-status) { color: var(--muted); line-height: 1.65; font-size: 12px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 20px; line-height: 1; transition: all .15s ease; }
.modal-close:hover { color: var(--purple); border-color: var(--lilac); background: var(--violet-mist); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin: 22px 0; background: #efeaf9; border-radius: 11px; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; color: var(--muted); }
.auth-tabs button.active { color: var(--purple-deep); background: var(--surface); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 22px; }
.wide-field { grid-column: 1 / -1; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.legal-card { max-height: min(84vh, 820px); overflow: auto; }
.legal-card h3 { margin: 24px 0 8px; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.85; }
.legal-card .legal-notice { padding: 15px 17px; border-left: 3px solid var(--purple); background: var(--violet-mist); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- 账户中心 ---------- */
.account-center-card { padding: 0; }
.account-center-card .modal-close { z-index: 2; top: 18px; right: 18px; color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); }
.account-center-hero { min-height: 136px; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; padding: 30px 74px 30px 32px; color: #fff; background: radial-gradient(480px 200px at 90% 0%, rgba(192, 132, 252, .45), transparent 60%), linear-gradient(115deg, #241547, #4c1d95 55%, #7c3aed); }
.account-center-avatar { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 15px; background: var(--grad-bright); box-shadow: 0 12px 26px rgba(0, 0, 0, .25); font-size: 25px; font-weight: 850; }
.account-center-hero h2 { margin: 5px 0 4px; font-size: 23px; }
.account-center-hero > div > span { color: rgba(236, 229, 252, .72); font-size: 12px; }
.account-center-hero .section-label { margin: 0; }
.account-state { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid rgba(52, 211, 153, .35); border-radius: 999px; color: #86efc4; background: rgba(16, 145, 99, .18); font-size: 11px; font-weight: 800; }
.account-tabs { display: flex; gap: 28px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.account-tabs button { position: relative; min-height: 54px; padding: 0; color: var(--muted); border: 0; background: transparent; font-size: 13px; font-weight: 700; }
.account-tabs button:hover { color: var(--ink); }
.account-tabs button.active { color: var(--purple); }
.account-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }
.account-panel { padding: 28px 32px 32px; }
.account-summary { display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-summary small, .account-summary strong { display: block; }
.account-summary small { color: var(--muted); font-size: 11px; }
.account-summary strong { margin: 5px 0 10px; font-size: 25px; color: var(--purple-deep); }
.account-summary p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.account-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 26px 0 14px; }
.account-section-heading small { color: var(--purple); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.account-section-heading h3 { margin: 4px 0 0; font-size: 17px; }
.account-section-heading > span { color: var(--muted); font-size: 11px; }
.account-workspace-list { border-top: 1px solid var(--line); }
.account-workspace-list button { width: 100%; min-height: 78px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 14px 6px; color: var(--ink); text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); transition: background .15s ease; }
.account-workspace-list button:hover { background: var(--violet-mist); }
.account-workspace-list button > span { color: var(--purple); font-size: 11px; font-weight: 850; }
.account-workspace-list strong, .account-workspace-list small { display: block; }
.account-workspace-list small { margin-top: 6px; color: var(--muted); font-size: 11px; }
.account-workspace-list i { color: var(--purple); font-style: normal; font-size: 11px; font-weight: 800; }
.account-security { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-security small, .account-security strong { display: block; }
.account-security small { color: var(--muted); font-size: 11px; }
.account-security strong { margin-top: 5px; font-size: 13px; }
.account-security .danger-link { width: auto; margin: 0; }
.account-profile-grid { margin-top: 0; }
.account-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* 认证中心 / 提交记录 / 启动准备 */
.verification-list { border-top: 1px solid var(--line); }
.verification-list article { min-height: 90px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 90px 118px; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.verification-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--purple); border: 1px solid var(--line-strong); border-radius: 11px; background: var(--violet-soft); font-size: 12px; font-weight: 850; }
.verification-list strong { display: block; font-size: 13px; }
.verification-list p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.verification-list .button { min-height: 37px; padding-inline: 12px; font-size: 12px; }
.status-pill { justify-self: start; min-height: 28px; display: inline-flex; align-items: center; padding: 0 11px; color: var(--muted); border-radius: 999px; background: #efeaf7; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-pill.pending { color: var(--amber); background: var(--amber-soft); }
.status-pill.verified { color: var(--green); background: var(--green-soft); }
.account-verification-note { margin: 20px 0 0; padding: 13px 15px; color: var(--ink-soft); border-left: 3px solid var(--violet); background: var(--violet-mist); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 12px; line-height: 1.7; }
.submission-list, .readiness-list { display: grid; gap: 10px; margin-top: 16px; }
.submission-item, .readiness-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-tint); }
.submission-item strong, .readiness-item strong { color: var(--ink); font-size: 14px; }
.submission-item p, .readiness-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.submission-item time, .readiness-item code { color: var(--muted); font-size: 11px; }
.readiness-item code { grid-column: 1 / -1; overflow-wrap: anywhere; padding: 9px 11px; border-radius: var(--r-sm); background: var(--violet-soft); }
.readiness-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; background: #a8afbd; }
.readiness-dot.ready { background: #22c55e; }
.readiness-dot.local { background: var(--violet); }
.readiness-dot.disabled { background: #8891a4; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.admin-metrics article { padding: 15px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-tint); }
.admin-metrics strong { display: block; margin-top: 5px; font-size: 23px; color: var(--purple); }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.review-actions .button { min-height: 36px; padding: 0 14px; font-size: 12px; }

/* ---------- 页脚 / 提示 ---------- */
.product-legal-footer { padding: 22px clamp(18px, 4vw, 58px); margin-left: 0; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); background: var(--surface-tint); border-top: 1px solid var(--line); font-size: 12px; }
.product-legal-footer[hidden] { display: none; }
.product-legal-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.product-legal-footer button { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; padding: 0; font-size: 12px; }
.product-legal-footer button:hover { color: var(--purple); }
.toast { position: fixed; z-index: 100; top: 20px; left: 50%; transform: translate(-50%, -120px); min-width: 280px; max-width: calc(100% - 30px); padding: 14px 20px; color: #fff; background: linear-gradient(120deg, #2a1552, #4c1d95); border: 1px solid rgba(192, 132, 252, .35); border-radius: var(--r-md); box-shadow: var(--shadow-lg); opacity: 0; transition: .25s ease; font-size: 13px; text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 响应式：≤1100px ---------- */
@media (max-width: 1100px) {
  :root { --sidebar: 232px; }
  .appbar-nav button b { display: none; }
  .role-lines { grid-template-columns: 1fr; }
  .value-rail { grid-template-columns: repeat(2, 1fr); }
  .value-rail article:nth-child(2n) { border-right: 0; }
  .role-lines article { grid-template-columns: 110px 220px 1fr; gap: 20px; }
  .role-lines .intro-card-link { grid-column: 2 / -1; }
  .resource-row { grid-template-columns: 40px 1fr 1fr 110px; }
  .resource-commercial { display: none; }
  .workflow-card { grid-template-columns: 44px minmax(240px, 1fr) minmax(170px, .7fr) 128px; }
  .workflow-commercial { display: none; }
  .project-card { grid-template-columns: 1fr 1fr; }
  .project-live { grid-column: 1 / -1; grid-template-columns: 1fr 1fr auto; align-items: center; }
  .project-live .button { width: auto; }
}

/* ---------- 响应式：≤820px ---------- */
@media (max-width: 820px) {
  .intro-header, .intro-hero, .value-network, .how-it-works, .intro-footer { width: min(100% - 28px, 680px); }
  .intro-nav a { display: none; }
  .intro-hero { min-height: auto; padding-block: 56px; }
  .intro-copy h1 { font-size: 42px; }
  .value-rail { grid-template-columns: 1fr; }
  .appbar { gap: 10px; padding: 10px 14px; }
  .appbar-nav { display: none; }
  .appbar .brand small { display: none; }
  .appbar-actions { margin-left: auto; }
  .appbar-actions .subtle, .notification-button { display: none; }
  .mobile-menu { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; font-size: 17px; color: var(--ink-soft); }
  .role-lines { grid-template-columns: 1fr; }
  .view { padding: 18px 16px 44px; }
  .role-lines article { grid-template-columns: 1fr; gap: 10px; }
  .role-lines .intro-card-link { grid-column: auto; }
  .dashboard-grid, .learning-layout, .advisor-grid, .learning-overview-grid, .assessment-layout, .profile-showcase, .tutor-layout { grid-template-columns: 1fr; }
  .learning-progress { position: static; }
  .step-flow { grid-template-columns: 1fr; gap: 14px; }
  .step-flow > i { display: none; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search-field { grid-column: 1 / -1; }
  .task-card { grid-template-columns: 1fr; }
  .task-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .resource-summary, .workflow-summary { grid-template-columns: repeat(3, 1fr); }
  .resource-summary > p, .workflow-summary > p { grid-column: 1 / -1; }
  .project-summary { grid-template-columns: repeat(3, 1fr); }
  .project-summary > p { grid-column: 1 / -1; }
  .project-card, .project-detail-about, .project-detail-grid { grid-template-columns: 1fr; }
  .project-proof, .project-live { padding-top: 18px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .project-live { grid-column: auto; grid-template-columns: 1fr; }
  .project-live .button { width: 100%; }
  .project-detail-hero { grid-template-columns: 58px 1fr; }
  .project-detail-hero .button { grid-column: 1 / -1; }
  .resource-row { grid-template-columns: 36px 1fr 90px; }
  .resource-services { display: none; }
  .workflow-card { grid-template-columns: 44px 1fr 120px; }
  .workflow-proof { grid-column: 2; }
  .workflow-actions { grid-column: 3; grid-row: 1 / 3; }
  .workflow-detail-grid { grid-template-columns: 1fr; }
  .learning-recommend, .profile-tags { grid-column: auto; }
  .learning-path ol { grid-template-columns: repeat(2, 1fr); }
  .course-player { grid-template-columns: 1fr; }
  .course-lesson-nav { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
  .course-lesson-nav button { min-width: 205px; }
}

/* ---------- 响应式：≤560px ---------- */
@media (max-width: 560px) {
  .intro-header { height: 72px; }
  .intro-header .button { min-height: 38px; padding-inline: 12px; }
  .intro-copy h1 { font-size: 34px; }
  .intro-lead { font-size: 15px; }
  .intro-actions { display: grid; }
  .hero-console { padding: 16px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .console-flow ol { grid-template-columns: 1fr; }
  .intro-footer { display: grid; gap: 8px; }
  .page-head h2 { font-size: 20px; }
  .workspace-nav-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .top-actions { gap: 6px; }
  .account-button b { display: none; }
  .welcome-strip, .view-heading { align-items: flex-start; flex-direction: column; }
  .learning-next, .action-guide { align-items: flex-start; flex-direction: column; }
  .learning-next .button, .action-guide .button { width: 100%; }
  .learning-goal-control { grid-template-columns: 1fr; }
  .module-subnav { gap: 20px; }
  .learning-path ol, .learning-metrics dl, .profile-stats { grid-template-columns: 1fr; }
  .project-summary { grid-template-columns: repeat(3, 1fr); }
  .project-summary > p { grid-column: 1 / -1; }
  .project-card { padding: 16px; }
  .project-identity { grid-template-columns: 1fr; }
  .project-metrics, .project-detail-metrics { grid-template-columns: 1fr 1fr; }
  .profile-identity { align-items: flex-start; flex-direction: column; }
  .course-list, .action-list { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .search-field { grid-column: auto; }
  .resource-summary, .workflow-summary { grid-template-columns: 1fr 1fr; }
  .resource-summary > p, .workflow-summary > p { grid-column: 1 / -1; }
  .resource-row { grid-template-columns: 32px 1fr; }
  .score-block { grid-column: 2; }
  .workflow-card { grid-template-columns: 1fr; padding: 16px; }
  .workflow-icon { display: none; }
  .workflow-proof, .workflow-actions { grid-column: auto; grid-row: auto; }
  .workflow-actions { grid-template-columns: 1fr 1fr; }
  .workflow-detail-hero, .diagnosis-cta { align-items: stretch; flex-direction: column; }
  .workflow-detail-hero { padding-right: 44px; }
  .workflow-detail-metrics, .diagnosis-facts { grid-template-columns: 1fr; }
  .task-actions { grid-template-columns: 1fr; }
  .course-modal-head { display: block; padding: 24px 58px 18px 20px; }
  .course-modal-head > strong { display: block; margin-top: 10px; font-size: 18px; }
  .course-modal-card > .progress { margin-inline: 20px; }
  .course-lesson-content { padding: 24px 20px 28px; }
  .lesson-point-grid { grid-template-columns: 1fr; }
  .lesson-point-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .lesson-point-grid article:last-child { border-bottom: 0; }
  .course-lesson-content .lesson-case, .lesson-practice { grid-template-columns: 1fr; gap: 10px; }
  .lesson-practice > span { grid-column: auto; }
  .lesson-knowledge-grid { grid-template-columns: 1fr; }
  .lesson-complete-action { bottom: -28px; align-items: stretch; flex-direction: column; margin: 24px -20px -28px; padding: 14px 20px; }
  .lesson-complete-action .button { width: 100%; }
}

@media (max-width: 560px) {
  .compact-task { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 0; }
  .compact-task strong { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .compact-task .status-open { grid-column: 2; grid-row: 2 / 4; align-self: center; justify-self: end; width: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .account-center-hero { grid-template-columns: 48px 1fr; min-height: 116px; padding: 22px 58px 22px 18px; }
  .account-center-avatar { width: 48px; height: 48px; }
  .account-state { grid-column: 2; justify-self: start; }
  .account-tabs { gap: 20px; padding-inline: 18px; overflow-x: auto; }
  .account-tabs button { flex: 0 0 auto; }
  .account-panel { padding: 22px 18px 24px; }
  .account-summary { grid-template-columns: 1fr; gap: 14px; }
  .account-summary .text-button { justify-self: start; padding: 0; }
  .account-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .verification-list article { grid-template-columns: 38px 1fr; }
  .verification-list .status-pill { grid-column: 2; }
  .verification-list .button { grid-column: 2; justify-self: start; }
  .account-security { align-items: flex-start; flex-direction: column; }
  .account-security .danger-link, .account-form-actions .button { width: 100%; }
  .account-form-actions { flex-direction: column-reverse; }
  .submission-item, .readiness-item { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .product-legal-footer { flex-direction: column; }
}

@media (max-width: 980px) {
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .product-legal-footer { margin-left: 0; }
}

/* AI 导师回答成功态 */
.tutor-message.answer { border-left-color: var(--purple); background: var(--violet-mist); }

/* 渐变横幅上的主按钮：白底紫字提升对比 */
.welcome-strip .button.primary { color: var(--purple-deep); background: #fff; box-shadow: 0 10px 24px rgba(23, 13, 46, .3); }
.welcome-strip .button.primary:hover { background: var(--violet-mist); }
