/* 织影（代号）· AI 视频智能体 —— 界面设计稿 2026-10-09
   独立系统，零依赖、纯离线，双击 prototype\index.html 就能看 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0b0f;
  --bg2: #0f1116;
  --panel: #14171f;
  --panel2: #1a1e28;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --tx: #e9ecf3;
  --tx2: #969cb0;
  --tx3: #6a7086;
  --acc: #7b61ff;
  --acc2: #4dd4ff;
  --ok: #46e6a0;
  --warn: #ffb35c;
  --pink: #ff7ac6;
  --bad: #ffb3b3;
  --fill: rgba(255, 255, 255, .05);
  --fill2: rgba(255, 255, 255, .09);
  --okbg: rgba(70, 230, 160, .12);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --r: 12px;
}
/* ---------- 三套主题（开发项 25）：同一套布局，只换颜色 ---------- */
body.t-light {
  --bg: #eef1f6;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f5f7fb;
  --line: rgba(16, 22, 40, .10);
  --line2: rgba(16, 22, 40, .20);
  --tx: #141a26;
  --tx2: #4c5568;
  --tx3: #78819a;
  --ok: #0f9a64;
  --warn: #b5731a;
  --pink: #d4459a;
  --bad: #c62828;
  --fill: rgba(16, 22, 40, .045);
  --fill2: rgba(16, 22, 40, .09);
  --okbg: rgba(15, 154, 100, .12);
  --shadow: 0 10px 28px rgba(16, 22, 40, .14);
}
body.t-film {
  --bg: #0d0a07;
  --bg2: #15110a;
  --panel: #1c1610;
  --panel2: #241c12;
  --line: rgba(255, 214, 160, .16);
  --line2: rgba(255, 214, 160, .30);
  --tx: #f4e8d6;
  --tx2: #b6a084;
  --tx3: #8b7a62;
  --acc: #ff8a3d;
  --acc2: #ffc266;
  --ok: #59d99b;
  --warn: #ffc266;
  --pink: #ff9ad0;
  --bad: #ff9b8a;
  --fill: rgba(255, 226, 190, .06);
  --fill2: rgba(255, 226, 190, .12);
  --okbg: rgba(89, 217, 155, .14);
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--tx); overflow: hidden;
  font: 13px/1.5 "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05);
  font-size: 12px; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .09); }
.btn.pri { background: linear-gradient(135deg, var(--acc), #5a8bff); border-color: transparent; font-weight: 600; }
.btn.gh { background: none; border-color: transparent; color: var(--tx2); }
.chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: var(--tx2); font-size: 11px;
}
.chip.on { background: rgba(123, 97, 255, .18); color: #c9bcff; }
.mut { color: var(--tx2); }
.sm { font-size: 11px; }
.grad { background: linear-gradient(135deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.thumbA { background: linear-gradient(135deg, #2b3350, #4b6ea8 60%, #8fb6d8); }
.thumbB { background: linear-gradient(135deg, #3a2b4e, #7b61ff 70%, #c9a4ff); }
.thumbC { background: linear-gradient(135deg, #123a34, #1f7a63 60%, #7fe0c0); }
.thumbD { background: linear-gradient(135deg, #4a2b2b, #b05a4a 60%, #e0a07f); }
.thumbE { background: linear-gradient(135deg, #2b2b3a, #6a7086 60%, #b9c0d2); }
.thumbF { background: linear-gradient(135deg, #2c3a1f, #6a8f3a 60%, #c6e08a); }

/* ---------- 设计稿导航条 ---------- */
.proto {
  position: fixed; left: 0; right: 0; top: 0; height: 38px; z-index: 99;
  display: flex; align-items: center; gap: 4px; padding: 0 12px;
  background: #05060a; border-bottom: 1px solid var(--line);
}
.proto a {
  color: var(--tx2); text-decoration: none; font-size: 12px; padding: 5px 10px; border-radius: 7px;
}
.proto a.on { background: rgba(123, 97, 255, .16); color: #cfc4ff; }
.proto .tag { margin-left: auto; color: var(--tx3); font-size: 11px; }
.screen { display: none; height: 100vh; padding-top: 38px; }
.screen.on { display: block; }

/* ---------- 通用：顶栏 ---------- */
.top {
  height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--bg2); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.logo i {
  width: 20px; height: 20px; border-radius: 6px; display: block;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
}
.top .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.top .grow { flex: 1; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #ffb35c, #ff7ac6);
  display: grid; place-items: center; font-size: 11px; color: #201a10; font-weight: 700;
}

/* ---------- 1. 项目中心 ---------- */
.home-wrap { height: calc(100vh - 38px); overflow: auto; padding: 26px 30px 40px; }
.hero {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(123, 97, 255, .18), transparent 55%), var(--panel);
}
.hero h1 { font-size: 22px; letter-spacing: .5px; margin-bottom: 6px; }
.hero p { color: var(--tx2); font-size: 12px; margin-bottom: 16px; }
.sayin {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 16px;
  background: #0b0d13; border: 1px solid var(--line2); border-radius: 12px;
}
.sayin input { flex: 1; background: none; border: 0; outline: 0; color: var(--tx); font: inherit; font-size: 14px; }
.sayin .btn.pri { height: 38px; padding: 0 18px; font-size: 13px; }
.tplrow { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tplrow .chip { height: 26px; padding: 0 11px; font-size: 12px; cursor: pointer; }
.sec { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 12px; }
.sec h2 { font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
}
.card .cover { height: 118px; position: relative; }
.card .cover .badge { position: absolute; left: 8px; top: 8px; }
.card .cover .dur { position: absolute; right: 8px; bottom: 8px; }
.card .meta { padding: 10px 12px 12px; }
.card .meta b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.card .meta .row { display: flex; gap: 6px; align-items: center; color: var(--tx3); font-size: 11px; }

/* ---------- 2. 创作画布 ---------- */
.canvas-app { display: flex; flex-direction: column; height: calc(100vh - 38px); }
.cv-body { flex: 1; display: flex; min-height: 0; }
.tools {
  width: 54px; border-right: 1px solid var(--line); background: var(--bg2);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0;
}
.tools button {
  width: 38px; height: 38px; border-radius: 10px; color: var(--tx2); font-size: 12px;
  display: grid; place-items: center; line-height: 1.05;
}
.tools button:hover { background: rgba(255, 255, 255, .06); color: var(--tx); }
.tools button.on { background: rgba(123, 97, 255, .18); color: #cfc4ff; }
.tools .gap { flex: 1; }
.world-wrap { flex: 1; position: relative; overflow: hidden; background: var(--bg); }
.world-wrap::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 0);
  background-size: 22px 22px;
}
.world { position: absolute; left: 0; top: 0; width: 1440px; height: 620px; }
.edges { position: absolute; left: 0; top: 0; pointer-events: none; }
.node {
  position: absolute; width: 240px; padding: 9px 11px 10px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line2); border-left: 3px solid var(--tx3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.node.sel { border-color: rgba(123, 97, 255, .7); box-shadow: 0 0 0 3px rgba(123, 97, 255, .16), 0 8px 24px rgba(0, 0, 0, .4); }
.node .nh { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tx3); }
.node .nh .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tx3); }
.node .nt { font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.node .ns { font-size: 11px; color: var(--tx2); margin-top: 5px; }
.node .thumbs { display: flex; gap: 5px; margin-top: 8px; }
.node .thumbs i { width: 34px; height: 34px; border-radius: 7px; display: block; }
.node .bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .09); margin-top: 9px; overflow: hidden; }
.node .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.node .st { position: absolute; right: 9px; top: 8px; font-size: 10px; }
.st.ok { color: var(--ok); } .st.bad { color: var(--warn); } .st.run { color: var(--acc2); }
.k-cast { border-left-color: var(--warn); } .k-cast .nh .dot { background: var(--warn); }
.k-scene { border-left-color: #c9a227; } .k-scene .nh .dot { background: #c9a227; }
.k-shot { border-left-color: var(--acc); } .k-shot .nh .dot { background: var(--acc); }
.k-image { border-left-color: var(--acc2); } .k-image .nh .dot { background: var(--acc2); }
.k-video { border-left-color: var(--ok); } .k-video .nh .dot { background: var(--ok); }
.k-audio { border-left-color: var(--pink); } .k-audio .nh .dot { background: var(--pink); }
.wave { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 8px; }
.wave i { flex: 1; background: rgba(255, 122, 198, .6); border-radius: 1px; }
.zoombar {
  position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px;
  background: rgba(20, 23, 31, .92); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; font-size: 11px;
}
.insp {
  width: 312px; border-left: 1px solid var(--line); background: var(--bg2); padding: 14px;
  overflow: auto; display: flex; flex-direction: column; gap: 13px;
}
.insp h3 { font-size: 13px; display: flex; align-items: center; gap: 7px; }
.fld label { display: block; font-size: 11px; color: var(--tx3); margin-bottom: 5px; }
.fld .box {
  background: #0b0d13; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px;
  font-size: 12px; color: #cfd5e6; line-height: 1.6;
}
.slots { display: flex; gap: 7px; }
.slots i { flex: 1; height: 48px; border-radius: 8px; border: 1px dashed var(--line2); display: block; }
.slots i.f { border: 0; }
.seg { display: flex; gap: 6px; }
.seg .chip { flex: 1; justify-content: center; }
.insp .cta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.insp .cta .btn.pri { height: 38px; justify-content: center; font-size: 13px; }

/* 底部时间线 */
.timeline { height: 132px; border-top: 1px solid var(--line); background: var(--bg2); padding: 8px 12px; }
.timeline .thead { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.tl { display: flex; gap: 8px; }
.tl .names { width: 52px; display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: var(--tx3); }
.tl .names span { height: 22px; line-height: 22px; }
.tl .tracks { flex: 1; display: flex; flex-direction: column; gap: 5px; position: relative; }
.tl .track { height: 22px; background: rgba(255, 255, 255, .03); border-radius: 5px; position: relative; }
.tl .clip { position: absolute; top: 2px; height: 18px; border-radius: 4px; font-size: 10px; display: flex; align-items: center; padding: 0 6px; color: #0b0d13; font-weight: 600; overflow: hidden; }
.playhead { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--acc2); }

/* ---------- 3. 智能体 ---------- */
.ag-body { display: flex; height: calc(100vh - 38px - 50px - 74px); min-height: 0; }
.chat { flex: 1; padding: 20px 26px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; max-width: 760px; }
.msg .ava { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.msg.me .ava { background: linear-gradient(135deg, #ffb35c, #ff7ac6); color: #201a10; }
.msg.ai .ava { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #0b0d13; }
.msg .bub { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bub { background: rgba(123, 97, 255, .14); border-color: rgba(123, 97, 255, .3); }
.steps { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.steps .st { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; }
.steps .st i { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-style: normal; }
.steps .st.d i { background: rgba(70, 230, 160, .18); color: var(--ok); }
.steps .st.w i { background: rgba(123, 97, 255, .2); color: #c9bcff; }
.steps .st .t { color: var(--tx2); }
.composer { height: 74px; border-top: 1px solid var(--line); background: var(--bg2); display: flex; align-items: center; gap: 10px; padding: 0 22px; }
.composer .sayin { flex: 1; height: 44px; }
.composer .sayin input { font-size: 13px; }
.ag-side { width: 430px; border-left: 1px solid var(--line); background: var(--bg2); padding: 16px; overflow: auto; }
.ag-side h3 { font-size: 13px; margin-bottom: 4px; }
.mini {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 9px 10px; margin-top: 9px;
}
.mini .mh { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tx3); }
.mini .mt { font-size: 12px; margin-top: 4px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mv .frame { height: 88px; border-radius: 9px; }
.readout { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- 4. 资产与积分 ---------- */
.assets-wrap { height: calc(100vh - 38px); overflow: auto; padding: 20px 26px 40px; }
.cols { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; align-items: start; }
.pane { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px; }
.pane h3 { font-size: 13px; margin-bottom: 4px; }
.agrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 11px; }
.agrid i { height: 62px; border-radius: 9px; display: block; position: relative; }
.castrow { display: flex; gap: 10px; margin-top: 11px; }
.castrow .c { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--panel2); }
.castrow .c .v3 { display: flex; gap: 4px; }
.castrow .c .v3 i { flex: 1; height: 40px; border-radius: 6px; display: block; }
.castrow .c b { display: block; font-size: 12px; margin-top: 7px; }
table.led { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11.5px; }
table.led th, table.led td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); color: var(--tx2); }
table.led th { color: var(--tx3); font-weight: 400; }
table.led td b { color: var(--tx); font-weight: 600; }
.mdl { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.mdl:last-child { border: 0; }
.sw { width: 30px; height: 17px; border-radius: 9px; background: rgba(255, 255, 255, .12); position: relative; flex: none; margin-left: auto; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: .15s; }
.sw.on { background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.sw.on::after { left: 15px; }
.note {
  margin-top: 16px; border: 1px dashed var(--line2); border-radius: 12px; padding: 12px 14px; color: var(--tx2); font-size: 11.5px; line-height: 1.8;
}
