html,body{touch-action:manipulation;-webkit-text-size-adjust:100%}
:root{
  --bg:#0b0d10;
  --bg2:#12151a;
  --panel:#161a20;
  --panel2:#1b2028;
  --line:#262c36;
  --line2:#333b47;
  --text:#e8ecf2;
  --muted:#8b98a9;
  --accent:#ff9f2e;
  --accent2:#ffc46b;
  --ok:#3ddc97;
  --warn:#ffcb45;
  --err:#ff6b6b;
  --radius:10px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--text);
  font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.app{
  display:grid;
  grid-template-columns:212px 1fr;
  grid-template-rows:58px 1fr;
  height:100vh;
}
/* ---------- top ---------- */
.topbar{
  grid-column:1/-1;display:flex;align-items:center;gap:16px;
  padding:0 16px;background:linear-gradient(180deg,#151920,#101319);
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;
}
.brand{display:flex;align-items:center;gap:10px;min-width:212px}
.logo{
  width:32px;height:32px;border-radius:9px;display:grid;place-items:center;
  background:linear-gradient(135deg,#ff9f2e,#ff6a3d);color:#1a1206;font-weight:800;font-size:16px;
}
.brand-text b{font-size:15px;letter-spacing:.3px}
.brand-text b span{color:var(--accent);font-weight:600;font-size:12px;margin-left:2px}
.brand-text small{display:block;color:var(--muted);font-size:11px;line-height:1.2}
.topbar-mid{display:flex;gap:8px;align-items:center;flex:1}
.topbar-right{display:flex;gap:10px;align-items:center}
.save-hint{color:var(--muted);font-size:12px}
.select{
  background:var(--panel);color:var(--text);border:1px solid var(--line2);
  border-radius:8px;padding:7px 10px;font-size:13px;min-width:180px;outline:none;
}
.select:focus{border-color:var(--accent)}
/* ---------- buttons ---------- */
.btn{
  border:1px solid var(--line2);background:var(--panel2);color:var(--text);
  padding:7px 13px;border-radius:8px;font-size:13px;cursor:pointer;white-space:nowrap;
  transition:.15s ease;
}
.btn:hover{border-color:#4a5566;background:#232a34}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.primary{background:linear-gradient(135deg,#ff9f2e,#ff7a2e);border-color:#ff9f2e;color:#191006;font-weight:700}
.btn.primary:hover{filter:brightness(1.06)}
.btn.ghost{background:transparent}
.btn.danger{color:#ffb3b3;border-color:#4a2a2a}
.btn.sm{padding:4px 9px;font-size:12px}
.btn.w100{width:100%}
/* ---------- sidebar ---------- */
.sidebar{
  background:var(--bg2);border-right:1px solid var(--line);
  display:flex;flex-direction:column;padding:10px 8px;overflow:auto;
}
#nav{display:flex;flex-direction:column;gap:2px}
.nav-item{
  display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;
  cursor:pointer;color:#a9b4c3;font-size:13px;border:1px solid transparent;
}
.nav-item:hover{background:#171c24;color:var(--text)}
.nav-item.active{background:#1e242e;color:#fff;border-color:#2b333e}
.nav-item.active .nav-idx{background:var(--accent);color:#1a1206}
.nav-idx{
  width:20px;height:20px;border-radius:6px;background:#222a34;color:#93a0b2;
  font-size:11px;display:grid;place-items:center;font-weight:700;flex:0 0 auto;
}
.nav-item span.lbl{flex:1}
.nav-badge{font-size:10px;color:var(--muted);background:#1b222b;border-radius:20px;padding:1px 6px}
.side-foot{margin-top:auto;padding-top:12px;display:flex;flex-direction:column;gap:8px}
.ai-state{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding:6px 8px;background:#10141a;border:1px solid var(--line);border-radius:8px}
.ai-state .dot{width:7px;height:7px;border-radius:50%;background:var(--err);flex:0 0 auto}
.ai-state.ok .dot{background:var(--ok)}
/* ---------- view ---------- */
.view{overflow:auto;padding:18px 22px 40px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.page-head h1{margin:0;font-size:19px;font-weight:700;letter-spacing:.4px}
.page-head p{margin:3px 0 0;color:var(--muted);font-size:12.5px}
.page-actions{display:flex;gap:8px;flex-wrap:wrap}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px}
.card + .card{margin-top:12px}
.card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.card-title b{font-size:13.5px}
.card-title small{color:var(--muted);font-size:11.5px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spacer{flex:1}
/* ---------- form ---------- */
label.field{display:block;margin-bottom:10px}
label.field > span{display:block;font-size:11.5px;color:var(--muted);margin-bottom:5px;letter-spacing:.4px}
input[type=text],input[type=password],input[type=tel],input[type=number],textarea,select{
  width:100%;background:#0f1318;border:1px solid var(--line2);color:var(--text);
  border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit;outline:none;
}
input:focus,textarea:focus,select:focus{border-color:var(--accent)}
textarea{resize:vertical;line-height:1.65}
textarea.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px}
.help{color:var(--muted);font-size:11.5px;margin-top:4px}
/* ---------- chips / tags ---------- */
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  border:1px solid var(--line2);background:#151a21;color:#c6d0dd;border-radius:20px;
  padding:5px 12px;font-size:12px;cursor:pointer;
}
.chip.on{background:#3a2a12;border-color:var(--accent);color:var(--accent2)}
.tag{font-size:10.5px;padding:1px 7px;border-radius:20px;background:#202832;color:#9fb0c4}
.tag.char{background:#2a2038;color:#c9a8ff}
.tag.scene{background:#16303a;color:#7fd8e8}
.tag.prop{background:#33291a;color:#e8c07f}
.tag.ok{background:#12302a;color:var(--ok)}
.tag.warn{background:#33290f;color:var(--warn)}
/* ---------- list / table ---------- */
.list{display:flex;flex-direction:column;gap:8px}
.list-item{
  display:flex;align-items:center;gap:10px;padding:9px 12px;background:#141920;
  border:1px solid var(--line);border-radius:9px;cursor:pointer;
}
.list-item:hover{border-color:#3a4452;background:#181e26}
.list-item .no{width:34px;color:var(--muted);font-size:12px;flex:0 0 auto}
.list-item .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list-item .sub{color:var(--muted);font-size:11.5px}
table.tbl{width:100%;border-collapse:collapse;font-size:12.5px}
table.tbl th{text-align:left;color:var(--muted);font-weight:500;padding:8px;border-bottom:1px solid var(--line);font-size:11.5px}
table.tbl td{padding:8px;border-bottom:1px solid #1e242c;vertical-align:top}
table.tbl tr:hover td{background:#141920}
/* ---------- assets ---------- */
.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.shot-audio{width:100%;margin-top:8px;border-radius:8px;color-scheme:dark;height:38px}
.shot-thumb{width:100%;max-height:220px;object-fit:cover;border-radius:8px;margin-top:8px;border:1px solid var(--line2)}
.asset-card{background:#141920;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.asset-thumb{height:132px;background:#0e1217 center/cover no-repeat;display:grid;place-items:center;color:#3d4754;font-size:12px;border-bottom:1px solid var(--line);position:relative;cursor:pointer}
.asset-thumb img{width:100%;height:100%;object-fit:cover}
.asset-body{padding:10px 11px}
.asset-name{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px}
.asset-sum{color:var(--muted);font-size:11.5px;margin-top:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.asset-actions{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}
/* ---------- shot ---------- */
.shot-card{background:#141920;border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;grid-template-columns:44px 1fr 168px;gap:12px}
.shot-card:hover{border-color:#3a4452}
.shot-no{font-size:20px;font-weight:800;color:#4a5568;line-height:1}
.shot-desc{font-size:12.8px;color:#d3dbe6;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shot-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.shot-ops{display:flex;flex-direction:column;gap:6px;justify-content:center}
/* ---------- prompt ---------- */
.prompt-box{
  background:#0d1116;border:1px solid var(--line2);border-radius:10px;padding:12px;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.2px;line-height:1.75;
  white-space:pre-wrap;word-break:break-word;max-height:520px;overflow:auto;
}
.section-label{color:var(--accent2);font-weight:700}
.warn-box{background:#2a2210;border:1px solid #4d3c14;color:#ffd98a;border-radius:9px;padding:9px 12px;font-size:12px;line-height:1.8}
.warn-box ul{margin:4px 0 0 16px;padding:0}
/* ---------- empty ---------- */
.empty{padding:48px 20px;text-align:center;color:var(--muted);border:1px dashed #2a323d;border-radius:12px;background:#101419}
.empty b{display:block;color:#c7d2df;font-size:14px;margin-bottom:6px}
.empty .btn{margin-top:14px}
/* ---------- modal ---------- */
.modal-mask{position:fixed;inset:0;height:100vh;height:100dvh;background:rgba(4,7,10,.72);z-index:60;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;overflow:hidden}
.modal{width:min(860px,100%);max-height:100%;box-sizing:border-box;background:var(--panel);border:1px solid var(--line2);border-radius:12px;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.5);margin:auto}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line);flex:0 0 auto}
.modal-body{padding:16px;overflow:auto;min-height:0;flex:1 1 auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.modal-foot{padding:12px 16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}
.hidden{display:none !important}
/* ---------- toast ---------- */
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#1d242e;border:1px solid #3a4553;color:#e9eef5;padding:9px 16px;border-radius:9px;font-size:13px;z-index:80;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.toast.err{border-color:#5a2a2a;color:#ffb0b0}
.toast.ok{border-color:#23543f;color:#8df0c2}
/* ---------- misc ---------- */
.kv{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 12px;font-size:12.5px}
.kv span.k{color:var(--muted);min-width:0;overflow-wrap:anywhere;word-break:break-word}
.kv span:not(.k){min-width:0;overflow-wrap:anywhere}
.code{font-family:ui-monospace,Consolas,monospace;font-size:11.5px;color:#9fb0c4}
.loading{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.spinner{width:13px;height:13px;border:2px solid #3a4452;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (max-width:1080px){
  .app{grid-template-columns:1fr;grid-template-rows:58px auto 1fr}
  .sidebar{flex-direction:row;overflow-x:auto;overflow-y:hidden;border-right:none;border-bottom:1px solid var(--line);-webkit-overflow-scrolling:touch}
  #nav{flex-direction:row;flex-wrap:nowrap}
  .nav-item{white-space:nowrap;flex:0 0 auto}
  .side-foot{display:none}
  .grid2,.grid3{grid-template-columns:1fr}
  .shot-card{grid-template-columns:36px 1fr}
  .shot-ops{grid-column:1/-1;flex-direction:row}
}

/* ---------- login ---------- */
.login-mask{position:fixed;inset:0;background:rgba(4,7,10,.86);z-index:90;display:grid;place-items:center;padding:20px}
.login-card{position:relative;width:min(360px,92vw);background:#161a20;border:1px solid #333b47;border-radius:12px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.login-close{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;background:transparent;color:#8b95a5;font-size:20px;line-height:1;cursor:pointer;border-radius:6px}
.login-close:hover{background:#232a34;color:#fff}
.login-card b{font-size:15px}
.login-card .help{margin:6px 0 14px}
.login-card input{width:100%}
.login-card .btn{padding:7px 16px}

/* ---------- v2.0 账号 / 充值 / 后台 ---------- */
.topbar-right{display:flex;align-items:center;gap:10px;margin-left:auto}
.user-box{display:flex;align-items:center;gap:8px}
.points-chip{display:inline-flex;align-items:center;gap:5px;background:#241c0f;border:1px solid #4a3a1a;color:#ffcb6b;border-radius:20px;padding:3px 10px;font-weight:700;font-size:12.5px;cursor:pointer}
.points-chip i{font-style:normal;font-size:10px;color:#a98a4d;background:#3a2d12;border-radius:10px;padding:0 5px}
.user-name{color:#cfd9e5;font-size:12.5px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.login-tabs{display:flex;gap:6px;margin:10px 0 14px}
.login-tab{flex:1;text-align:center;padding:7px 0;border-radius:8px;border:1px solid #333b47;color:#8b98a9;cursor:pointer;font-size:13px}
.login-tab.on{border-color:#ff9f2e;color:#ffcb6b;background:#241c0f}
.login-card input{margin-bottom:9px}
.login-card .hidden{display:none}
.input{width:100%;background:#0f1318;border:1px solid #333b47;color:#e8ecf2;border-radius:8px;padding:7px 9px;font-size:13px;outline:none}
.input:focus{border-color:var(--accent)}
textarea.input{resize:vertical}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.plan-card{background:#12161c;border:1px solid #262c36;border-radius:12px;padding:16px;position:relative}
.plan-card:hover{border-color:#4a3a1a}
.plan-name{font-size:14px;font-weight:700;color:#e8ecf2}
.plan-points{font-size:30px;font-weight:800;color:#ffcb6b;line-height:1.25;margin:4px 0 0}
.plan-points small{font-size:12px;font-weight:400;color:#a98a4d}
.plan-price{color:#cfd9e5;font-size:13px;margin-bottom:6px}
.pay-box{text-align:center;padding:6px 0 2px}
.pay-points{font-size:26px;font-weight:800;color:#ffcb6b}
.pay-points small{font-size:12px;color:#a98a4d}
.pay-amount{font-size:16px;color:#cfd9e5;margin-bottom:8px}
.qr-box{display:inline-block;background:#fff;padding:8px;border-radius:10px;margin:6px 0}
.qr-box svg{display:block}
.pay-tip{background:#2a1414;border:1px solid #5a2a2a;color:#ffb3b3;border-radius:9px;padding:10px 14px;margin-bottom:12px}
.tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.tbl th{text-align:left;color:#8b98a9;font-weight:500;padding:8px 8px;border-bottom:1px solid #262c36;white-space:nowrap}
.tbl td{padding:8px 8px;border-bottom:1px solid #1d232b;vertical-align:middle}
.tbl tr:last-child td{border-bottom:none}
.plus{color:var(--ok)}
.minus{color:var(--err)}
.badge{font-size:11px;padding:2px 8px;border-radius:20px;background:#202832;color:#9fb0c4;white-space:nowrap}
.badge.paid{background:#12302a;color:var(--ok)}
.badge.pending{background:#33290f;color:var(--warn)}
.badge.closed{background:#2a1414;color:#ff9b9b}
.notice{background:#1d2129;border:1px solid #333b47;border-left:3px solid var(--accent);border-radius:8px;padding:10px 14px;margin-bottom:12px;color:#cfd9e5;font-size:12.5px}

.topbar-mid{flex:1;min-width:0;display:flex;align-items:center;gap:10px}
.topbar-mid .select{min-width:160px;max-width:300px}
.topbar-right{flex-shrink:0}

/* ================= 手机端适配（v2.1） ================= */
@media (max-width:720px){
  html,body{height:auto}
  .app{grid-template-columns:1fr;grid-template-rows:auto auto 1fr;min-height:100vh;height:auto;min-width:0;max-width:100vw;overflow-x:clip}
  .topbar{min-width:0;max-width:100vw}
  .sidebar{min-width:0;max-width:100vw}
  #nav{min-width:0}
  .view{min-width:0;max-width:100vw}
  .page-head,.page-actions,.card,.card-title,.chips,.kv,.btn-row{min-width:0}
  .btn{flex:0 0 auto}
  .page-actions{flex-wrap:wrap;flex-direction:column;align-items:stretch}
  .page-actions .btn{flex:1 1 100%;width:100%}
  .btn-row{flex-wrap:wrap}
  .topbar{flex-wrap:wrap;gap:8px;padding:8px 10px;position:static}
  .brand{min-width:0;gap:8px}
  .brand-text small{display:none}
  .brand-text b{font-size:14px}
  .logo{width:28px;height:28px;border-radius:8px;font-size:14px}
  .topbar-mid{order:3;width:100%;flex:1 1 100%}
  .topbar-mid .select{flex:1;min-width:0;max-width:none}
  .topbar-mid .btn{flex:0 0 auto}
  .topbar-right{margin-left:auto;gap:6px}
  .save-hint{display:none}
  .user-name{display:none}
  .topbar-right .btn[data-step=settings]{display:none}
  .points-chip{padding:2px 8px;font-size:11.5px}

  .sidebar{flex-direction:row;overflow-x:auto;overflow-y:hidden;border-right:none;border-bottom:1px solid var(--line);padding:6px 8px;position:static;background:var(--bg2)}
  #nav{flex-direction:row;gap:6px;flex-wrap:nowrap}
  .nav-item{padding:7px 10px;font-size:12px;white-space:nowrap;flex:0 0 auto}
  .nav-item .nav-badge{display:none}
  .nav-idx{width:17px;height:17px;font-size:10px}
  .side-foot{display:none}

  .view{padding:12px 12px 36px;overflow:visible}
  .page-head{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px}
  .page-head h1{font-size:17px}
  .page-head p{font-size:12px}
  .page-actions .btn{flex:1}
  .card{padding:12px}
  .card + .card{margin-top:10px}
  .grid2,.grid3{grid-template-columns:1fr;gap:10px}
  .row{gap:8px}

  input[type=text],input[type=password],input[type=tel],input[type=number],textarea,select,.input{font-size:16px;padding:9px 10px}
  textarea.mono{font-size:16px}
  .select{font-size:16px}
  .share-succ input{font-size:16px}

  .shot-card{grid-template-columns:1fr;gap:8px;padding:12px}
  .shot-no{font-size:16px}
  .shot-ops{flex-direction:row;flex-wrap:wrap;justify-content:flex-start}
  .shot-ops .btn{flex:1 1 40%}
  .asset-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .project-grid{grid-template-columns:1fr}
  .asset-thumb{height:110px}
  .prompt-box{max-height:none;font-size:12px}
  .plan-grid{grid-template-columns:1fr}
  .prompt-layout{grid-template-columns:1fr !important}
  .prompt-layout > .card{max-height:none !important}
  .prompt-layout textarea{height:260px;min-height:260px}

  .card{overflow-x:auto}
  .tbl{min-width:620px}
  .modal-mask{padding:12px}
  .modal{width:100%;max-width:100%;max-height:100%;border-radius:14px}
  .modal-head{padding:10px 14px;flex:0 0 auto}
  .modal-body{padding:12px 14px;min-height:0}
  .modal-foot{padding:10px 14px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));flex:0 0 auto}
  .login-card{width:100%;max-width:420px;padding:18px}
  .kv{grid-template-columns:1fr;gap:2px;font-size:12.5px}
  .kv span.k{margin-top:9px;font-size:11.5px;letter-spacing:.3px;color:#8d9cb0}
  .kv span.k:first-child{margin-top:0}
  .kv span:not(.k){color:#dfe8f3;line-height:1.55}
  .empty{padding:32px 14px}
  .toast{left:12px;right:12px;transform:none;bottom:16px;text-align:center}
}
@media (max-width:380px){
  .nav-item{padding:6px 8px;font-size:11.5px}
  .points-chip{font-size:11px}
  .brand-text b{font-size:13px}
}

/* ---------- 横屏 / 矮屏（手机横放、平板横屏） ---------- */
@media (max-width:1080px) and (max-height:560px){
  .topbar{padding:6px 10px;gap:8px}
  .brand-text small{display:none}
  .brand-text b{font-size:13px}
  .logo{width:28px;height:28px;border-radius:8px;font-size:14px}
  .topbar-mid .select{font-size:12.5px}
  .sidebar{padding:4px 8px}
  .nav-item{padding:6px 9px;font-size:12px}
  .nav-idx{width:16px;height:16px;font-size:10px}
  .view{padding:10px 12px 26px}
  .page-head{margin-bottom:10px}
  .page-head h1{font-size:16px}
  .page-head p{display:none}
  .page-actions .btn{padding:6px 12px;font-size:12.5px}
  .card{padding:10px}
  .card-title{margin-bottom:8px}
  .empty{padding:24px 12px}
}

/* ---------- 游客首页（未登录） ---------- */
body.guest-mode .app{grid-template-columns:1fr;grid-template-rows:58px 1fr}
body.guest-mode .sidebar,
body.guest-mode .topbar-mid,
body.guest-mode .save-hint,
body.guest-mode .topbar-right [data-step="settings"]{display:none!important}
body.guest-mode .view{padding-top:24px}
.guest{max-width:1040px;margin:0 auto;padding:10px 2px 30px}
.guest-hero{position:relative;padding:44px 34px 38px;border:1px solid #242c38;border-radius:18px;
  background:radial-gradient(120% 140% at 12% 0%,rgba(255,159,46,.14),transparent 58%),linear-gradient(160deg,#141922,#0e1218)}
.guest-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#ffcb6b;border:1px solid #4a3a1a;
  background:#241c0f;border-radius:20px;padding:4px 11px;margin-bottom:14px}
.guest-hero h1{margin:0 0 12px;font-size:34px;line-height:1.28;letter-spacing:.5px;color:#eef3fa}
.guest-hero h1 span{background:linear-gradient(120deg,#ffb457,#ff7a3d);-webkit-background-clip:text;background-clip:text;color:transparent}
.guest-hero p{margin:0 0 22px;color:#96a3b4;font-size:14px;line-height:1.9}
.guest-hero p b{color:#ffcb6b}
.guest-cta{display:flex;gap:12px;flex-wrap:wrap}
.guest-cta .btn.lg{padding:11px 26px;font-size:15px;border-radius:10px}
.guest-note{margin-top:16px;font-size:12px;color:#6f7c8d}
.guest-feats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.guest-feat{position:relative;padding:18px 16px;border:1px solid #242c38;border-radius:14px;background:#12161d;transition:border-color .18s,transform .18s}
.guest-feat:hover{border-color:#3b4657;transform:translateY(-2px)}
.guest-feat i{display:block;font-style:normal;font-size:11px;color:#ff9f2e;letter-spacing:1px;margin-bottom:8px}
.guest-feat b{display:block;font-size:14.5px;color:#e8eef6;margin-bottom:6px}
.guest-feat span{display:block;font-size:12.5px;line-height:1.75;color:#8b98a9}
@media (max-width:860px){
  .guest-hero{padding:28px 18px 26px}
  .guest-hero h1{font-size:23px}
  .guest-hero p{font-size:13px}
  .guest-feats{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .guest-hero h1{font-size:21px}
  .guest-cta .btn.lg{width:100%;justify-content:center}
  .guest-feats{grid-template-columns:1fr}
}

/* ---------- 站脚 ---------- */
.site-footer{grid-column:1/-1;border-top:1px solid #1f262f;background:#0e1218;
  padding:18px 22px 14px;font-size:12px;color:#7c8798}
.foot-main{display:flex;align-items:flex-start;gap:28px;justify-content:space-between;flex-wrap:wrap}
.foot-brand{display:flex;align-items:center;gap:10px;min-width:260px}
.foot-brand .logo.sm{width:32px;height:32px;border-radius:9px;font-size:15px}
.foot-brand b{display:block;color:#dfe6ef;font-size:13px;letter-spacing:.3px}
.foot-brand p{margin:3px 0 0;color:#6f7c8d;font-size:11.5px}
.foot-links{display:flex;gap:18px;flex-wrap:wrap;padding-top:4px}
.foot-links a{color:#8b98a9;text-decoration:none;transition:color .15s}
.foot-links a:hover{color:#ffb457}
.foot-meta{text-align:right;line-height:1.9}
.foot-meta .icp,.foot-meta a{color:#8b98a9;text-decoration:none}
.foot-meta a:hover{color:#ffb457}
.foot-tip{margin-top:12px;padding-top:10px;border-top:1px dashed #1d242d;color:#5f6b7b;font-size:11px;line-height:1.7}
@media (max-width:860px){
  .site-footer{padding:16px 16px 12px}
  .foot-main{flex-direction:column;gap:14px}
  .foot-links{gap:14px}
  .foot-meta{text-align:left}
}

/* ---------- 首页样片 ---------- */
.guest-showcase{margin-top:14px;padding:18px 16px 16px;border:1px solid #242c38;border-radius:16px;background:#11161d}
.sc-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.sc-head b{font-size:14.5px;color:#e8eef6}
.sc-head span{font-size:11.5px;color:#6f7c8d}
.sc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sc-card{position:relative;display:block;padding:0;border:1px solid #242c38;border-radius:12px;overflow:hidden;background:#0b0f14;cursor:zoom-in;text-align:left;transition:border-color .18s,transform .18s}
.sc-card:hover{border-color:#3b4657;transform:translateY(-2px)}
.sc-card img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;opacity:.94}
.sc-cap{display:block;padding:9px 10px 1px;color:#dfe6ef;font-size:12.5px}
.sc-sub{display:block;padding:2px 10px 10px;color:#7c8798;font-size:11px}
@media (max-width:860px){.sc-grid{grid-template-columns:1fr 1fr}.guest-showcase{padding:14px 12px}}
@media (max-width:520px){.sc-grid{grid-template-columns:1fr}}

/* ---------- 图片灯箱 ---------- */
#lightbox{position:fixed;inset:0;z-index:120;background:rgba(3,5,8,.9);display:grid;place-items:center;padding:24px}
#lightbox img{max-width:min(92vw,720px);max-height:88vh;border-radius:12px;box-shadow:0 24px 80px rgba(0,0,0,.6)}
.lb-close{position:absolute;top:14px;right:16px;width:38px;height:38px;border:1px solid #3b4657;border-radius:10px;background:#161a20;color:#dfe6ef;font-size:20px;cursor:pointer}

/* ---------- 品牌 logo ---------- */
.brand{text-decoration:none;color:inherit;display:flex;align-items:center;gap:10px}
.foot-brand{text-decoration:none;color:inherit}
.logo{background:transparent!important;box-shadow:none!important;overflow:visible}
.logo img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 0 10px rgba(255,120,40,.28))}
.logo::before,.logo::after{display:none}

/* ---------- 资产卡：防止图片溢出压住按钮 ---------- */
.asset-thumb{overflow:hidden;position:relative;flex:0 0 auto;background-size:cover}
.asset-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.asset-body{position:relative;z-index:1;background:#141920}
.asset-actions{position:relative;z-index:2}
.asset-audio{padding:0 11px 8px}
.asset-audio audio{width:100%;height:32px;display:block}
@media (max-width:560px){
  .asset-grid{grid-template-columns:1fr}
  .asset-thumb{height:auto;aspect-ratio:16/10;max-height:52vw}
  .asset-actions .btn{flex:1 1 30%}
}

.logo{width:40px;height:40px}

/* ---------- 页脚中间导航（美化版） ---------- */
.foot-links{align-items:center;gap:0;padding:5px 6px;border:1px solid #232b36;border-radius:999px;
  background:linear-gradient(180deg,#141922,#10151c);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.foot-links a{position:relative;display:inline-flex;align-items:center;padding:6px 14px;border-radius:999px;
  color:#9aa7b8;font-size:12.5px;letter-spacing:.3px;transition:color .15s,background .15s}
.foot-links a:hover{color:#ffc06a;background:#1d232c}
.foot-links a::after{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:1px;
  background:linear-gradient(90deg,transparent,#ff9f2e,transparent);transform:scaleX(0);transition:transform .18s}
.foot-links a:hover::after{transform:scaleX(1)}
.foot-dot{width:3px;height:3px;border-radius:50%;background:#3a4452;margin:0 2px}
.guide-step{position:relative;padding:10px 0 10px 44px;border-bottom:1px dashed #232b36}
.guide-step:last-of-type{border-bottom:0}
.guide-step i{position:absolute;left:0;top:11px;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;
  font-style:normal;font-size:11.5px;font-weight:700;color:#ffb457;background:#241c0f;border:1px solid #4a3a1a}
.guide-step b{display:block;font-size:13.5px;color:#e8eef6;margin-bottom:3px}
.guide-step p{margin:0;font-size:12.5px;line-height:1.8;color:#8b98a9}
@media (max-width:860px){
  .foot-links{width:100%;justify-content:center;flex-wrap:wrap;border-radius:12px}
}

/* ---------- 游客只读示例模式 ---------- */
body.guest-mode .app{grid-template-columns:212px 1fr;grid-template-rows:58px 1fr auto}
body.guest-mode .sidebar{display:flex!important}
body.guest-mode .topbar-mid{display:flex!important}
body.guest-mode .side-foot,
body.guest-mode .save-hint,
body.guest-mode .topbar-right [data-step="settings"],
body.guest-mode [data-act="newProject"]{display:none!important}
body.guest-mode .view{padding-top:18px}
.guest-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;margin-bottom:14px;
  border:1px solid #4a3a1a;border-radius:10px;background:linear-gradient(90deg,#241c0f,#141a22 70%)}
.guest-banner b{font-size:13px;color:#ffcb6b}
.guest-banner span{display:block;font-size:12px;color:#96a3b4;margin-top:3px}
@media (max-width:860px){
  body.guest-mode .app{grid-template-columns:1fr;grid-template-rows:auto auto 1fr auto}
  .guest-banner{flex-direction:column;align-items:flex-start}
  .guest-banner .btn{width:100%}
}
body.guest-mode [data-act="demo"],
body.guest-mode [data-act="delProject"],
body.guest-mode [data-act="delEp"],
body.guest-mode [data-act="delShot"]{display:none!important}

/* 示例速览 */
.guest-showcase{margin-top:16px;border:1px solid #232b36;border-radius:12px;background:linear-gradient(180deg,#151b24,#11151b);padding:16px}
.gs-head{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
.gs-head b{font-size:14px;color:#e8edf4}
.gs-head span{font-size:12px;color:#7d8899}
.gs-eps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.gs-ep{border:1px solid #26303c;border-radius:9px;padding:10px 12px;background:#171e27}
.gs-ep i{font-style:normal;font-size:11px;color:#ffcb6b;letter-spacing:.5px}
.gs-ep b{display:block;font-size:13px;color:#e8edf4;margin:4px 0 3px}
.gs-ep span{font-size:11px;color:#8794a6}
.gs-arts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.gs-art{margin:0;border-radius:9px;overflow:hidden;background:#0e1319;border:1px solid #26303c}
.gs-art img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block}
.gs-art figcaption{font-size:11px;color:#9aa6b6;padding:6px 8px}
.gs-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.gs-step{border:1px solid #26303c;border-radius:9px;padding:10px 12px;background:#151c25}
.gs-step i{font-style:normal;font-size:11px;color:#5b9dff}
.gs-step b{display:block;font-size:12px;color:#e8edf4;margin:3px 0 2px}
.gs-step span{font-size:11px;color:#8794a6;line-height:1.5}
.gs-cta{margin-top:14px;text-align:center}
@media (max-width:860px){
  .gs-eps,.gs-steps{grid-template-columns:1fr 1fr}
  .gs-arts{grid-template-columns:1fr 1fr}
}

/* 工作台：项目 + 统计同排 */
.dash-top{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(260px,.9fr);gap:12px;align-items:start}
.dash-stats{display:grid;grid-template-rows:repeat(3,minmax(112px,1fr));gap:10px;height:100%}
.dash-stats .card{display:flex;flex-direction:column;justify-content:center}
.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.proj-new{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;border:1px dashed #33404f;border-radius:10px;background:#11161d;cursor:pointer;transition:.15s;text-align:center;padding:18px}
.proj-new:hover{border-color:#f0a43c;background:#161c24}
.proj-new b{font-size:13px;color:#e8edf4}
.proj-new span{font-size:12px;color:#8794a6}
@media (max-width:960px){
  .dash-top{grid-template-columns:1fr}
  .dash-stats{grid-template-rows:none;grid-template-columns:repeat(3,1fr)}
}
@media (max-width:640px){
  .dash-stats{grid-template-columns:1fr}
  .project-grid{grid-template-columns:1fr}
}
.dash-projects .gs-eps{margin-top:12px}

/* 静态首屏 SEO 兜底（JS 启动后替换） */
.seo-pre{max-width:860px;padding:26px 0 10px}
.seo-pre h1{font-size:26px;line-height:1.45;letter-spacing:.3px}
.seo-pre h2{font-size:17px;margin:22px 0 8px}
.seo-pre .seo-lede{color:#96a3b4;font-size:14px;line-height:1.9;margin-top:10px}
.seo-pre .seo-steps{color:#c3ccd8;font-size:13.5px;line-height:1.9;padding-left:18px}
.seo-pre .seo-links{list-style:none;padding:0}
.seo-pre .seo-links li{padding:5px 0}
.seo-pre .seo-links a{color:#5b9dff;font-size:13.5px}
.seo-pre .btn{margin-top:14px}

/* 启动遮罩，避免静态首屏一闪 */
.view{position:relative}
.boot{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#0c1117;min-height:58vh}
.boot img{width:56px;height:56px;border-radius:12px;box-shadow:0 0 0 1px #26303c}
.boot b{font-size:15px;letter-spacing:1px;color:#e8edf4}
.boot span{font-size:12px;color:#8794a6;letter-spacing:.5px}
.boot-line{width:120px;height:2px;margin-top:10px;border-radius:2px;background:linear-gradient(90deg,#f0a43c,#5b9dff,#f0a43c);background-size:200% 100%;animation:bootmove 1.1s linear infinite}
@keyframes bootmove{0%{background-position:0 0}100%{background-position:200% 0}}

/* 启动阶段先藏住未初始化的外壳，避免空侧栏/空下拉 */
body.boot-loading .sidebar,
body.boot-loading .topbar-mid,
body.boot-loading .topbar-right,
body.boot-loading .site-footer{visibility:hidden}
body.boot-loading .boot{position:fixed;inset:0;min-height:100vh}

/* 桌面端只保留内容区滚动，去掉页面外层第二条滚动条 */
@media (min-width:861px){
  html,body{overflow:hidden}
  .app{grid-template-rows:58px minmax(0,1fr) auto;overflow:hidden}
  .view{min-height:0}
}

/* 主题色滚动条 */
*{scrollbar-width:thin;scrollbar-color:#f0a43c #0d1117}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-track{background:#0d1117;border-radius:9px}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#ffb347,#e8871a);border-radius:9px;border:2px solid #0d1117}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#ffc670,#f0a43c)}
::-webkit-scrollbar-corner{background:#0d1117}
.view::-webkit-scrollbar{width:8px}
.view::-webkit-scrollbar-thumb{border-width:1.5px}

/* 项目概览：紧凑指标卡 */
.overview{display:flex;flex-direction:column;gap:4px;padding:14px 16px}
.ov-hero{display:flex;align-items:center;gap:10px;padding:6px 0 10px;border-bottom:1px dashed #26303c;margin-bottom:4px}
.ov-hero b{display:block;font-size:15px;color:#e8edf4;line-height:1.4}
.ov-hero span{font-size:11.5px;color:#8794a6}
.pj-badge{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-weight:800;font-size:16px;color:#2a1a06;background:linear-gradient(135deg,#ffc670,#e8871a);flex:0 0 auto}
.pj-badge.sm{width:30px;height:30px;font-size:13px;border-radius:8px}
.pj-head{display:flex;align-items:center;gap:9px;margin-bottom:6px}
.ov-row{display:flex;align-items:baseline;justify-content:space-between;margin-top:6px}
.ov-row span{font-size:12px;color:#8794a6}
.ov-row b{font-size:15px;color:#e8edf4;letter-spacing:.3px}
.ov-bar{height:4px;border-radius:4px;background:#1b2430;overflow:hidden}
.ov-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#f0a43c,#ffc670)}
.ov-cta{margin-top:12px;width:100%}
/* 入场与悬停，让访客态更“活” */
.dash-top>.card{animation:riseIn .38s ease both}
.dash-top>.card:nth-child(2){animation-delay:.07s}
@keyframes riseIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.asset-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s}
.asset-card:hover{transform:translateY(-2px);border-color:#3a4657;box-shadow:0 8px 22px rgba(0,0,0,.28)}
.proj-new{transition:.18s}
.gs-art{transition:transform .2s ease,box-shadow .2s}
.gs-art:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.3)}
.gs-ep{transition:.16s;cursor:pointer}
.gs-ep:hover{border-color:#f0a43c;background:#1b222c}
/* 访客横幅流光 */
.guest-banner{position:relative;overflow:hidden}
.guest-banner::after{content:"";position:absolute;top:0;left:-40%;width:35%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,196,107,.12),transparent);animation:shine 4.6s ease-in-out infinite}
@keyframes shine{0%{left:-40%}55%{left:120%}100%{left:120%}}
@media (prefers-reduced-motion:reduce){.guest-banner::after{display:none}.dash-top>.card{animation:none}}

/* 登录入口分层：顶栏实心、横幅描边、概览文字链 */
.ov-link{margin-top:10px;padding:8px 2px 2px;background:none;border:0;border-top:1px dashed #26303c;color:#f0a43c;font-size:12.5px;text-align:left;cursor:pointer;letter-spacing:.3px}
.ov-link span{display:inline-block;transition:transform .18s}
.ov-link:hover span{transform:translateX(4px)}
.ov-link:hover{color:#ffc670}

/* 访客只读状态与提示词弹窗 */
.gb-state{font-size:10px;letter-spacing:2px;color:#c08b3a;border:1px solid #4a3a1a;padding:3px 9px;border-radius:999px;flex:0 0 auto}
.gp-meta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.gp-desc{font-size:13px;color:#c3ccd8;line-height:1.8;margin:2px 0 6px}
.gp-dlg{font-size:12.5px;color:#e0c08a;background:#1b1710;border-left:2px solid #f0a43c;padding:6px 10px;border-radius:4px;margin-bottom:8px}
.gp-hint{font-size:12px;color:#8794a6;margin-top:8px;line-height:1.7}

/* 导演包结构预览 */
.gs-pack{margin-top:16px;border:1px solid #232b36;border-radius:12px;background:linear-gradient(180deg,#151b24,#11151b);padding:16px}
.pk-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:stretch}
.pk-tree{margin:0;padding:14px 16px;background:#0c1117;border:1px solid #26303c;border-radius:10px;color:#a9b7c8;font:12.5px/1.95 ui-monospace,Menlo,Consolas,monospace;white-space:pre;overflow:auto}
.pk-side{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;height:100%;align-items:stretch}
.pk-tile{border:1px solid #26303c;border-radius:9px;background:#141b24;padding:12px 14px;display:flex;flex-direction:column;justify-content:center}
.pk-tile b{display:block;font-size:12.5px;color:#e8edf4}
.pk-tile code{display:block;font-size:11px;color:#f0a43c;margin:3px 0 2px}
.pk-tile span{font-size:11px;color:#8794a6;line-height:1.5}
.pk-note{margin-top:10px;font-size:11.5px;color:#7d8899}
@media (max-width:860px){.pk-grid{grid-template-columns:1fr}.pk-side{grid-template-columns:1fr 1fr}}

/* 分镜体检 */
.au-head{display:flex;align-items:center;gap:18px;padding-bottom:14px;border-bottom:1px solid #26303c}
.au-score{display:flex;align-items:baseline;gap:4px}
.au-score b{font-size:40px;font-weight:900;color:#ffc46b;line-height:1}
.au-score span{font-size:12px;color:#96a3b4}
.au-grade{font-style:normal;margin-left:8px;width:30px;height:30px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;color:#141a22;background:#7ee2b0}
.au-grade.gA{background:#7ee2b0}.au-grade.gB{background:#ffc46b}.au-grade.gC{background:#f0a43c}.au-grade.gD{background:#e2685f;color:#fff}
.au-sum b{display:block;font-size:15px}
.au-sum span{font-size:12px;color:#96a3b4}
.au-bars{margin:14px 0 6px;display:grid;gap:6px}
.au-bar{display:grid;grid-template-columns:86px 1fr 52px;align-items:center;gap:10px;font-size:12px;color:#96a3b4}
.au-track{height:6px;background:#1d242e;border-radius:3px;overflow:hidden}
.au-track i{display:block;height:100%;border-radius:3px}
.au-bv{text-align:right;color:#7d8899;font-variant-numeric:tabular-nums}
.au-std{margin:14px 0 10px;border:1px solid #26303c;border-radius:9px;background:#11161d}
.au-std summary{cursor:pointer;padding:10px 14px;font-size:12.5px;color:#c3ceda}
.au-std-body{padding:0 14px 12px;font-size:12px;line-height:1.9;color:#8d9aa9}
.au-std-body b{color:#d7dee8}
.au-std-tip{margin-top:6px;color:#f0a43c;opacity:.85}
.au-list{display:grid;gap:8px;max-height:44vh;overflow:auto;padding-right:4px}
.au-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #26303c;border-left-width:3px;border-radius:8px;background:#141a22;font-size:12.5px}
.au-item.lv-block{border-left-color:#e2685f}.au-item.lv-warn{border-left-color:#f0a43c}.au-item.lv-tip{border-left-color:#5b9dff}
.au-lv{flex:0 0 auto;font-size:11px;color:#96a3b4;border:1px solid #2b3644;border-radius:999px;padding:1px 7px}
.lv-block .au-lv{color:#f0938c;border-color:#63332f}
.lv-warn .au-lv{color:#ffc46b;border-color:#5a452a}
.lv-tip .au-lv{color:#9dc0ff;border-color:#2f4360}
.au-no{flex:0 0 auto;color:#6f7d8d;font-variant-numeric:tabular-nums}
.au-msg{flex:1;color:#cdd6e2;line-height:1.7}
.au-item .btn{flex:0 0 auto}
@media (max-width:640px){.au-head{flex-wrap:wrap;gap:10px}.au-bar{grid-template-columns:70px 1fr 44px}.au-list{max-height:50vh}}

/* 分享链接 */
.share-succ label.field span{color:#96a3b4}
.share-succ input{font-family:ui-monospace,Menlo,monospace;font-size:12.5px}

/* 批量生成 */
.bk-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-top:10px;border:1px solid #26303c;border-radius:10px;background:#141a22}
.bk-row b{display:block;font-size:13.5px}
.bk-prog{margin-top:14px}
.bk-bar{height:8px;background:#1d242e;border-radius:4px;overflow:hidden}
.bk-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#ffb347,#f08a1d);transition:width .25s}

/* ---- 工作台：项目封面卡 ---- */
.pcard-list{display:grid;grid-template-columns:1fr;gap:12px;margin-top:4px}
.pcard{background:#10151c;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s,transform .15s}
.pcard:hover{border-color:#3a4453}
.pcard-cover{position:relative;aspect-ratio:16/9;max-height:230px;background:#0c1015;display:block;overflow:hidden}
.pcard-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 32%}
.pcard-cover.noimg{background:linear-gradient(135deg,#2a2013,#12161c)}
.pcard-mono{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:16px;background:linear-gradient(160deg,#ffb45a,#f2671f);display:grid;place-items:center;font-size:30px;font-weight:800;color:#1a1206}
.pcard-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,9,13,0) 26%,rgba(6,9,13,.72) 72%,rgba(6,9,13,.95) 100%)}
.pcard-genre{position:absolute;left:12px;top:12px;padding:3px 9px;border-radius:999px;font-size:11px;color:#ffc988;background:rgba(20,14,6,.62);border:1px solid rgba(255,168,72,.38);backdrop-filter:blur(3px)}
.pcard-cap{position:absolute;left:14px;right:14px;bottom:12px;display:flex;flex-direction:column;gap:3px}
.pcard-cap b{font-size:16px;font-weight:800;letter-spacing:.3px;text-shadow:0 1px 8px rgba(0,0,0,.6);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.pcard-cap span{font-size:12px;color:#c7ced8;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-body{padding:11px 14px 13px}
.pcard-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.pcard-meta b{color:#e8edf4;font-size:13px;margin-right:2px}
.pcard-meta .mut{margin-left:auto}
.pcard-prog{height:5px;border-radius:99px;background:#1c232c;margin:10px 0 6px;overflow:hidden}
.pcard-prog i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff9c3f,#ffc46b)}
.pcard-prog-txt{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted)}
.pcard-actions{display:flex;gap:8px;margin-top:11px}
.pcard-actions .btn{flex:0 0 auto}
.pcard-actions .btn.primary{flex:1 1 auto}
.pcard-actions .btn.ghost{flex:0 0 84px;color:#9aa4b2;border-color:#2a323d}

/* ---- 工作台：概览三宫格 ---- */
.ov-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.ov-tiles>div{background:#121820;border:1px solid var(--line);border-radius:10px;padding:10px 8px;text-align:center}
.ov-tiles b{display:block;font-size:19px;font-weight:800;color:#f6ad5f;line-height:1.15}
.ov-tiles span{font-size:11px;color:var(--muted)}
.ov-strip{margin-top:12px}
.ov-strip-head{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;color:var(--muted);margin-bottom:6px}
.ov-strip-head b{color:#f6ad5f;font-size:14px}
.ov-strip-sub{font-size:11px;color:var(--muted);margin-top:6px}
.gs-ep.done{border-color:rgba(255,156,63,.55)}
.gs-ep.done i{color:#ffc988}

/* ---- 工作台：顶部操作一行 ---- */
.view[data-step="dash"] .page-actions{flex-direction:row;flex-wrap:nowrap;gap:8px}
.view[data-step="dash"] .page-actions .btn{flex:1 1 0;width:auto;min-width:0;padding:11px 8px;font-size:13px;white-space:nowrap}
.view[data-step="dash"] .page-actions .btn.primary{flex:1.15 1 0}

@media (max-width:560px){
  .pcard-cover{aspect-ratio:16/9;max-height:none}
  .pcard-cap b{font-size:17px}
  .view[data-step="dash"] .page-actions .btn{padding:11px 6px;font-size:12.5px}
}

.gs-eps{margin-top:10px}
@media (min-width:900px){
  .pcard-list{grid-template-columns:1fr 1fr}
  .pcard-list>.proj-new{min-height:180px}
}

/* ---- 工作台：对齐与体感修正 ---- */
.pcard-list{align-items:stretch}
.pcard{height:100%}
.pcard-list>.proj-new{height:100%;min-height:190px}
.ov-sub{font-size:11.5px;color:var(--muted);padding:2px 0 10px;border-bottom:1px dashed #26303c;margin-bottom:10px}
.overview .gs-eps{grid-template-columns:1fr;gap:8px}
.overview .gs-ep{display:flex;align-items:center;gap:9px;padding:9px 11px}
.overview .gs-ep i{flex:0 0 auto}
.overview .gs-ep b{flex:1 1 auto;margin:0;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview .gs-ep span{flex:0 0 auto;font-size:11px;padding:2px 7px;border-radius:999px;background:#1b222c;color:#93a0b1}
.overview .gs-ep.done span{background:rgba(242,140,40,.16);color:#ffc988}

/* 无封面时的封面质感 */
.pcard-cover.noimg{background:
  radial-gradient(120% 90% at 50% 0%,rgba(255,170,80,.16),rgba(255,170,80,0) 60%),
  repeating-linear-gradient(45deg,rgba(255,255,255,.035) 0 2px,rgba(255,255,255,0) 2px 9px),
  linear-gradient(150deg,#1d1913,#0d1117 65%)}
.pcard-cover.noimg .pcard-mono{box-shadow:0 12px 34px rgba(255,140,40,.28),0 0 0 1px rgba(255,180,90,.3) inset}

/* ---- 动效：让站点活一点 ---- */
.btn{transition:transform .16s ease,filter .16s ease,border-color .16s ease,box-shadow .16s ease}
.btn:hover{filter:brightness(1.07);transform:translateY(-1px)}
.btn:active{transform:translateY(0) scale(.99)}
.nav-item{transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-item:hover{background:#151c25;transform:translateX(1px)}
.nav-item.active{box-shadow:inset 3px 0 0 #f08c28}
@media (max-width:1080px){.nav-item.active{box-shadow:inset 0 -3px 0 #f08c28;transform:none}}
.pcard{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.pcard:hover{transform:translateY(-3px);border-color:#3b4757;box-shadow:0 16px 40px rgba(0,0,0,.45)}
.pcard-cover img{transition:transform .6s ease}
.pcard:hover .pcard-cover img{transform:scale(1.035)}
.pcard-prog i,.ov-bar i{background-image:linear-gradient(90deg,#ff9c3f,#ffc46b,#ff9c3f);background-size:220% 100%;animation:barFlow 3.6s linear infinite}
@keyframes barFlow{0%{background-position:0% 0}100%{background-position:220% 0}}
.gs-ep{transition:border-color .18s ease,transform .18s ease,background .18s ease}
.gs-ep:hover{border-color:#3c4654;transform:translateY(-1px);background:#1a222c}
.ov-tiles>div{transition:transform .18s ease,border-color .18s ease}
.ov-tiles>div:hover{transform:translateY(-2px);border-color:#37424f}
@media (prefers-reduced-motion:reduce){
  .pcard-prog i,.ov-bar i{animation:none}
  .pcard:hover,.btn:hover,.gs-ep:hover,.ov-tiles>div:hover{transform:none}
}

/* ---- 工作台：左右等高 + 下一步 ---- */
.dash-top{align-items:stretch}
.dash-top>.card{display:flex;flex-direction:column;min-height:0}
.dash-projects .pcard-list{margin-bottom:0;flex:1 1 auto}
.overview{flex:1 1 auto}
.dash-projects,.overview{padding-bottom:14px}
.ov-next{margin-top:auto;padding-top:12px;border-top:1px dashed #26303c}
.ov-next-head{font-size:11px;letter-spacing:1px;color:#8b96a6;margin-bottom:8px}
.ov-next-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid #26303c;border-radius:10px;background:#141b24;cursor:pointer;transition:border-color .16s ease,transform .16s ease,background .16s ease}
.ov-next-item+.ov-next-item{margin-top:8px}
.ov-next-item:hover{border-color:#3c4858;background:#18202a;transform:translateX(2px)}
.ov-next-item b{display:block;font-size:12.5px;color:#e9eef5;line-height:1.35}
.ov-next-item span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.ov-next-item i{font-style:normal;color:#f0a04a;font-size:16px;flex:0 0 auto}
.view{scrollbar-gutter:stable}
.overview .ov-link{margin-top:12px}

/* 新建项目占位卡：用流程小标签填满，不再空荡 */
.proj-new{padding:22px 18px}
.pn-steps{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;margin-top:14px;font-size:10.5px;color:#7f8b9c}
.pn-steps span{border:1px solid #28313d;background:#141a22;padding:3px 8px;border-radius:999px;white-space:nowrap}
.pn-steps i{font-style:normal;color:#3f4a58}

/* 手机端页脚整块居中 */
@media (max-width:700px){
  .site-footer{text-align:center}
  .foot-main{align-items:center;gap:12px}
  .foot-brand{flex-direction:column;min-width:0;text-align:center;gap:7px}
  .foot-brand p{max-width:280px}
  .foot-links{justify-content:center}
  .foot-meta{text-align:center}
  .foot-tip{text-align:center}
}

/* PC 端收口：卡片撑满整行、导演包两列重新配比 */
.dash-top>.card{height:100%}
@media (min-width:861px){
  .pk-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
}

/* 新建项目启动卡 */
.proj-new{align-items:stretch!important;justify-content:flex-start!important;text-align:left!important;gap:0!important;padding:16px 16px 14px!important}
.pn-head{margin-bottom:12px}
.pn-head b{display:block;font-size:15px;color:#eef3f9;font-weight:800}
.pn-head span{display:block;font-size:11.5px;color:#7f8b9c;margin-top:4px}
.pn-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #262f3b;border-radius:10px;background:#141b24;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.pn-opt+.pn-opt{margin-top:8px}
.pn-opt:hover{border-color:#3d4959;background:#182130;transform:translateX(2px)}
.pn-opt b{display:block;font-size:12.5px;color:#e7edf5}
.pn-opt span{display:block;font-size:11px;color:#8b96a6;margin-top:2px}
.pn-opt i{font-style:normal;color:#f0a04a;font-size:13px;width:20px;height:20px;border-radius:50%;border:1px solid rgba(240,160,74,.4);display:grid;place-items:center;flex:0 0 auto}
.pn-steps{margin-top:auto;padding-top:12px}
.proj-new .pn-steps{justify-content:flex-start}
a.pn-opt{text-decoration:none;color:inherit}

/* 启动卡三行自适应填满 */
.pn-list{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-height:0}
.pn-opt{flex:1 1 0;min-height:54px;max-height:96px}
.pn-opt+.pn-opt{margin-top:0}
/* 项目卡与概览底部按钮贴底，消掉卡内空档 */
.pcard-body{flex:1 1 auto;display:flex;flex-direction:column}
.pcard-actions{margin-top:auto}
.ov-link{margin-top:auto!important}
/* PC：项目卡让封面吃掉多余高度，避免卡内空档 */
@media (min-width:900px){
  .pcard-cover{aspect-ratio:auto;flex:1 1 auto;max-height:none;min-height:170px}
  .pcard-body{flex:0 0 auto}
  .pcard-actions{margin-top:11px}
  .ov-link{margin-top:12px!important}
}
/* 概览：一眼看到进度的层级 */
.ov-epsline{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 12px}
.ov-epsline>span{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#9aa6b6;border:1px solid #26303c;border-radius:999px;padding:4px 9px;background:#141b24;white-space:nowrap}
.ov-epsline i{width:6px;height:6px;border-radius:50%;background:#5a6675;flex:0 0 auto}
.ov-epsline>.done{color:#ffcb8b;border-color:rgba(240,160,74,.42);background:rgba(240,140,40,.1)}
.ov-epsline>.done i{background:#f29a3e}
.ov-tiles b{font-size:21px}
.ov-strip-head span{font-size:12.5px;color:#a7b3c2}
.ov-strip-head b{font-size:16px;font-weight:800}
.pcard-meta{font-size:12.5px}
.pcard-meta b{font-size:15px}
.pcard-prog-txt{font-size:12px}
/* ---- 工作台 B 版：横排项目行 + 新建快启条 ---- */
.dash-projects{display:flex;flex-direction:column}
.prow-list{display:flex;flex-direction:column;gap:12px}
.prow{display:grid;grid-template-columns:180px minmax(0,1fr) 200px;gap:16px;align-items:center;background:#0f141b;border:1px solid var(--line);border-radius:12px;padding:12px;transition:border-color .16s,transform .16s}
.prow:hover{border-color:#3b4757}
.prow-cover{position:relative;height:106px;border-radius:9px;overflow:hidden;background:#0c1015}
.prow-cover img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;display:block}
.prow-cover.noimg{background:linear-gradient(135deg,#2a2013,#12161c);display:grid;place-items:center}
.prow-mono{width:46px;height:46px;border-radius:12px;background:linear-gradient(160deg,#ffb45a,#f2671f);display:grid;place-items:center;font-size:22px;font-weight:800;color:#1a1206}
.prow-genre{position:absolute;left:8px;top:8px;padding:2px 8px;border-radius:999px;font-size:10.5px;color:#ffc988;background:rgba(20,14,6,.62);border:1px solid rgba(255,168,72,.38)}
.prow-main{min-width:0;display:flex;flex-direction:column;gap:5px}
.prow-name{font-size:17px;font-weight:800;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prow-log{font-size:12.5px;color:#c3cbd6;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prow-meta{display:flex;gap:12px;font-size:12px;color:var(--muted);flex-wrap:wrap;margin-top:2px}
.prow-meta b{color:#f6ad5f;font-size:14px;margin-right:2px}
.prow-meta .mut{margin-left:auto}
.prow-side{display:flex;flex-direction:column;gap:8px;min-width:0}
.prow-prog{display:flex;justify-content:space-between;align-items:baseline;font-size:11.5px;color:var(--muted)}
.prow-prog b{color:#f6ad5f;font-size:15px;font-weight:800}
.prow-bar{height:5px;border-radius:99px;background:#1c232c;overflow:hidden}
.prow-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff9c3f,#ffc46b)}
.prow-btns{display:flex;gap:8px}
.prow-btns .btn{flex:1 1 0;min-width:0;padding:9px 6px;font-size:12.5px}
.prow-btns .btn.ghost{flex:0 0 58px;color:#9aa4b2;border-color:#2a323d}
.newstrip{flex:1 1 auto;display:flex;flex-direction:column;gap:10px;margin-top:14px;padding:14px;border:1px dashed #33404f;border-radius:12px;background:#11161d;min-height:150px}
.newstrip-head{display:flex;align-items:baseline;gap:9px}
.newstrip-head b{font-size:14px;font-weight:800;color:#dfe6ef}
.newstrip-head span{font-size:11.5px;color:var(--muted)}
.newstrip-grid{flex:1 1 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ncell{border:1px solid #232c37;border-radius:10px;background:#131922;padding:12px 12px;display:flex;flex-direction:column;justify-content:center;gap:5px;text-decoration:none;color:inherit;transition:.15s}
.ncell:hover{border-color:#f0a43c;background:#171d26}
.ncell i{font-style:normal;font-size:13px;color:#f2a13f;line-height:1}
.ncell b{font-size:13px;font-weight:700;color:#e9eff7}
.ncell span{font-size:11px;color:#8695a8;line-height:1.45}
@media (max-width:899px){
  .prow{grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:start}
  .prow-cover{height:76px}
  .prow-side{grid-column:1 / -1;flex-direction:column}
  .prow-btns .btn{flex:1 1 0}
  .prow-btns .btn.ghost{flex:0 0 72px}
  .newstrip-grid{grid-template-columns:1fr}
  .newstrip{min-height:0}
}
.newstrip-grid{grid-auto-rows:min-content;align-content:center}
.ncell{padding:15px 14px;gap:6px}
.newstrip{min-height:170px}
.prow-meta .mut{white-space:nowrap}
/* 高度不再强行拉满，卡片各自贴内容 */
@media (min-width:900px){
  .dash-top{align-items:start}
  .dash-projects{flex:0 0 auto;height:auto}
  .overview{height:auto}
  .newstrip{flex:0 0 auto;min-height:0}
}
@media (min-width:900px){
  .dash-top{align-items:start}
  .dash-top>.card{height:auto;align-self:start}
}
@media (min-width:900px){
  .dash-top{align-items:stretch}
  .dash-top>.card{height:100%;align-self:stretch}
  .dash-projects{height:100%}
  .newstrip{flex:1 1 auto}
  .newstrip-grid{align-content:stretch;grid-auto-rows:1fr}
  .ncell{justify-content:center}
}
/* ---- 中等宽度 / 浏览器缩放：单列排布，别挤 ---- */
@media (max-width:1100px){
  .dash-top{grid-template-columns:1fr;gap:14px}
  .dash-top>.card{height:auto}
  .overview{height:auto}
}
@media (max-width:820px){
  .view[data-step="dash"] .page-actions{flex-wrap:wrap}
  .view[data-step="dash"] .page-actions .btn{flex:1 1 46%}
}
@media (max-width:1100px){
  .prow{grid-template-columns:132px minmax(0,1fr);align-items:start;gap:14px}
  .prow-cover{height:88px}
  .prow-side{grid-column:1 / -1;gap:8px}
  .prow-btns .btn{flex:1 1 0}
  .prow-btns .btn.ghost{flex:0 0 78px}
  .prow-name{font-size:16px}
}
@media (min-width:641px){
  .newstrip-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;grid-auto-rows:min-content}
}
@media (max-width:640px){
  .newstrip-grid{grid-template-columns:1fr;grid-auto-rows:min-content;align-content:start}
  .newstrip{padding:12px}
  .ncell{padding:12px}
}
/* 顶栏在窄屏/缩放时不撑破页面 */
@media (max-width:1000px){
  .topbar{flex-wrap:wrap;row-gap:8px;padding:8px 12px;height:auto}
  .topbar-right{margin-left:0;flex-wrap:wrap;gap:8px}
  .topbar-mid{flex:1 1 100%;order:3}
  .select{min-width:0;flex:1 1 auto}
  .user-name{max-width:72px}
}
@media (max-width:1000px){
  .topbar .brand-text small{display:none}
  .topbar{gap:10px}
}
@media (max-width:1000px){
  .topbar{flex-wrap:nowrap;padding:8px 12px}
  .topbar-mid{order:2;flex:1 1 0;min-width:0}
  .topbar-right{order:3;flex:0 0 auto;margin-left:0;flex-wrap:nowrap;overflow:hidden}
  .topbar-right .btn{padding:5px 9px;font-size:12px}
  .points-chip{padding:2px 8px}
}
/* ---- 工作台 C 版：首页英雄区 ---- */
.dash-hero{position:relative;text-align:center;padding:40px 20px 30px;border:1px solid var(--line);border-radius:16px;background:
  radial-gradient(90% 120% at 50% -20%,rgba(255,150,60,.12),rgba(255,150,60,0) 62%),
  linear-gradient(180deg,#121821,#0e131a);
  margin-bottom:14px;overflow:hidden}
.hero-mark{width:54px;height:54px;margin:0 auto 12px;border-radius:14px;display:grid;place-items:center;font-size:24px;font-weight:800;color:#1a1206;background:linear-gradient(160deg,#ffc26b,#f2671f);box-shadow:0 10px 26px rgba(240,120,40,.32)}
.dash-hero h1{font-size:23px;font-weight:800;letter-spacing:.5px;margin:0 0 6px}
.hero-sub{font-size:12.5px;color:#93a1b3;margin:0 auto 16px;max-width:520px;line-height:1.6}
.hero-tabs{display:inline-flex;gap:6px;padding:4px;border-radius:999px;background:#0c1015;border:1px solid #222b36;margin-bottom:16px}
.hero-tabs span{padding:6px 14px;border-radius:999px;font-size:12.5px;color:#8d9aab;cursor:pointer;transition:.15s}
.hero-tabs span.on{background:#1b222c;color:#f0a43c}
.hero-tabs span:not(.on):hover{color:#dbe3ee}
.hero-input{max-width:640px;margin:0 auto;border:1px solid #2a3441;border-radius:12px;background:#0c1015;text-align:left;overflow:hidden;transition:border-color .15s}
.hero-input:focus-within{border-color:#f0a43c}
.hero-input textarea{width:100%;border:0;background:transparent;color:var(--text);font-size:13.5px;line-height:1.7;padding:14px 16px 6px;resize:none;outline:none;font-family:inherit}
.hero-input textarea::placeholder{color:#5f6c7d}
.hero-input-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px 12px}
.hero-ratio{font-size:11.5px;color:#74838f}
.hero-input.locked{opacity:.85}
.hero-pipe{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:22px}
.hstep{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:78px}
.hstep i{font-style:normal;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;color:#ffc988;background:#171e27;border:1px solid #2c3947}
.hstep b{font-size:12px;font-weight:700;color:#dde5ef}
.hstep span{font-size:10.5px;color:#75828f;white-space:nowrap}
.harrow{color:#3c4a5a;font-size:15px;margin:0 -2px 14px}
@media (max-width:900px){
  .dash-hero{padding:26px 14px 20px}
  .dash-hero h1{font-size:20px}
  .hero-tabs span{padding:6px 10px;font-size:12px}
  .hstep{min-width:62px}
  .hstep span{display:none}
  .hero-pipe{gap:4px}
}
@media (max-width:640px){
  .hero-pipe{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;justify-items:center}
  .harrow{display:none}
  .hstep{min-width:0}
  .hero-input-foot .btn{flex:0 0 auto}
}
.hero-tabs a{padding:6px 14px;border-radius:999px;font-size:12.5px;color:#8d9aab;text-decoration:none}
.hero-tabs a:hover{color:#dbe3ee;background:#161d26}
@media (max-width:900px){.hero-tabs a{padding:6px 10px;font-size:12px}}
.link-more{background:none;border:0;color:#f0a43c;font-size:12px;cursor:pointer;padding:2px 0}
.link-more span{opacity:.7}
.modal .prow-list{gap:10px}
.ep-prog{flex:1 1 auto;display:flex;flex-direction:column;gap:8px;margin-top:14px;padding-top:12px;border-top:1px dashed #26303c}
.ep-prog-head{display:flex;align-items:baseline;gap:9px;margin-bottom:2px}
.ep-prog-head b{font-size:12.5px;color:#dbe3ee}
.ep-prog-head span{font-size:11px;color:var(--muted)}
.epr{display:grid;grid-template-columns:44px minmax(0,1fr) 62px 54px;gap:10px;align-items:center;padding:7px 10px;border:1px solid #222b36;border-radius:9px;background:#0e131a}
.epr b{font-size:11.5px;color:#8b98a8;font-weight:700}
.epr-t{font-size:12.5px;color:#dfe6ef;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epr-n{font-size:11.5px;color:#93a1b3;text-align:right}
.epr-s{font-size:10.5px;text-align:center;padding:2px 0;border-radius:999px;background:#1b222c;color:#93a0b1}
.epr.fin{border-color:rgba(240,160,74,.42);background:rgba(240,140,40,.06)}
.epr.fin .epr-s{background:rgba(242,140,40,.18);color:#ffc988}
.epr.fin b{color:#f0a43c}
/* 两卡底边严格对齐 */
@media (min-width:1101px){
  .dash-top{align-items:stretch}
  .dash-top>.card{height:100%;align-self:stretch}
  .ep-prog{justify-content:space-between}
  .overview{display:flex;flex-direction:column}
  .overview .ov-next{margin-top:auto}
}
@media (min-width:1101px){
  .dash-top>.card:last-child{margin-top:0}
}
/* 访客右栏：登录引导卡 */
.ov-epsline>span{font-size:12.5px;padding:5px 10px}
.guest-auth{display:flex;flex-direction:column;gap:0}
.ga-mark{width:42px;height:42px;margin:6px auto 12px;border-radius:11px;display:grid;place-items:center;font-size:19px;font-weight:800;color:#1a1206;background:linear-gradient(160deg,#ffc26b,#f2671f)}
.ga-lead{font-size:12.5px;line-height:1.7;color:#a9b5c4;text-align:center;margin:0 0 14px}
.ga-list{display:flex;flex-direction:column;gap:8px}
.ga-list>div{display:flex;align-items:baseline;gap:8px;padding:8px 10px;border:1px solid #222b36;border-radius:9px;background:#0e131a}
.ga-list b{font-size:12.5px;color:#f6ad5f;white-space:nowrap}
.ga-list span{font-size:11.5px;color:#8b98a8}
.ga-foot{margin-top:auto;padding-top:14px;display:flex;flex-direction:column;gap:9px}
.ga-foot .btn{width:100%;padding:11px 8px}
.ga-link{font-size:12px;color:#f0a43c;text-decoration:none;text-align:center}
.ga-link span{opacity:.7}
/* hero 规格选择 */
.hero-opts{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.hseg{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:999px;background:#10161d;border:1px solid #232c37}
.hopt{background:none;border:0;padding:5px 9px;border-radius:999px;font-size:11.5px;color:#8b98a8;cursor:pointer;white-space:nowrap;transition:.14s;font-family:inherit}
.hopt:hover{color:#dbe3ee}
.hopt.on{background:#1d2530;color:#f6ad5f}
@media (max-width:520px){
  .hero-opts{gap:6px}
  .hopt{padding:5px 7px;font-size:11px}
}
.hnum-wrap{display:inline-flex;align-items:center;gap:2px;padding:0 8px 0 6px;border-left:1px solid #232c37;margin-left:2px}
.hnum{width:34px;background:transparent;border:0;outline:none;color:#f6ad5f;font-size:11.5px;font-weight:700;text-align:center;font-family:inherit}
.hnum::-webkit-outer-spin-button,.hnum::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hnum-wrap em{font-style:normal;font-size:10.5px;color:#7b8899}
@media (max-width:520px){.hnum{width:28px}}
/* hero 三个下拉 */
.hero-opts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hsel{appearance:none;-webkit-appearance:none;background:#10161d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%236b7a8c'/%3E%3C/svg%3E") no-repeat right 9px center;border:1px solid #232c37;border-radius:8px;color:#dbe3ee;font-size:11.5px;padding:6px 24px 6px 10px;cursor:pointer;font-family:inherit;line-height:1.2;transition:border-color .14s}
.hsel:hover{border-color:#3a4757}
.hsel:focus{outline:none;border-color:#f0a43c}
.hero-opts .hsel{width:auto;flex:0 0 auto;min-width:0;max-width:160px}
.hero-input-foot{flex-wrap:wrap;align-items:center}
.hero-input-foot .btn{margin-left:auto}
.hcustom{display:inline-flex;align-items:center;gap:3px;height:28px;padding:0 8px;border:1px solid #f0a43c;border-radius:8px;background:#10161d}
.hcustom .hinp{width:52px;background:transparent;border:0;outline:none;color:#f6ad5f;font-size:11.5px;font-weight:700;text-align:center;font-family:inherit}
.hcustom em{font-style:normal;font-size:10.5px;color:#8a97a7}
.hcustom{height:30px;padding:0 10px 0 6px;gap:4px}
.hcustom .hinp{width:46px;height:26px;padding:0 2px;margin:0;border:0;border-radius:0;background:transparent;font-size:12.5px;font-weight:700;line-height:26px;box-shadow:none!important;outline:none}
.hcustom .hinp:focus{border:0;background:transparent}
/* 自绘下拉，替代手机原生 select 弹层 */
.hpickwrap{position:relative}
.hpick{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid #232c37;border-radius:8px;background:#10161d;color:#dbe3ee;font-size:11.5px;line-height:1;cursor:pointer;font-family:inherit}
.hpick:hover{border-color:#3a4757}
.hpick em{font-style:normal;font-size:9px;color:#6b7a8c}
.hpmenu{position:absolute;left:0;top:calc(100% + 6px);z-index:60;min-width:120px;max-height:236px;overflow:auto;padding:5px;border:1px solid #2a3441;border-radius:10px;background:#121821;box-shadow:0 18px 40px rgba(0,0,0,.5);display:none}
.hpmenu.show{display:block}
.hpitem{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:7px;background:none;color:#cfd9e5;font-size:12px;text-align:left;cursor:pointer;font-family:inherit;white-space:nowrap}
.hpitem:hover{background:#1a222c;color:#fff}
.hpitem.on{color:#f6ad5f}
.hpitem i{font-style:normal;color:#f6ad5f;font-size:11px}
.hpitem.more{color:#8b98a8;border-top:1px solid #222b36;border-radius:0 0 7px 7px;margin-top:4px}
@media (max-width:640px){.hpick{height:32px;padding:0 9px}.hpitem{padding:10px}}
.hero-input{overflow:visible}
.hero-input textarea{border-radius:12px 12px 0 0}
.hero-input-foot{overflow:visible}
.hero-opts{position:relative;z-index:5}
.hpmenu{position:fixed;left:0;top:0;z-index:900;min-width:140px}

/* 手机最窄档：顶栏只留 品牌 + 点数 + 退出，不再挤「新建项目」 */
@media (max-width:560px){
  .topbar{padding:8px 10px;gap:8px}
  .topbar-mid{display:none}
  .topbar-right{margin-left:auto;overflow:visible}
  .topbar-right .btn[data-act="logout"]{padding:5px 10px}
  .points-chip{font-size:11.5px;padding:2px 8px}
  .logo{width:26px;height:26px}
  .brand-text b{font-size:13.5px}
}

/* 无项目时的右栏开工指南 */
.start-card .ov-sub{margin-bottom:10px}
.start-rows{display:flex;flex-direction:column;gap:8px;margin:2px 0 14px}
.start-row{display:flex;gap:10px;align-items:flex-start;background:#121820;border:1px solid #222b36;border-radius:10px;padding:9px 11px}
.start-row i{flex:0 0 auto;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;color:#1a1206;background:linear-gradient(160deg,#ffc26b,#f2671f)}
.start-row div{display:flex;flex-direction:column;gap:2px;min-width:0}
.start-row b{font-size:12.5px;color:#e8ecf2}
.start-row span{font-size:11.5px;color:#8b98a9;line-height:1.5}
.start-card .ov-cta{margin-top:auto}
.start-foot{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:11.5px}
.start-foot a{color:#8b98a9;text-decoration:none}
.start-foot a:hover{color:#f0a43c}

/* 点数包：可选中 */
.plan-pickgrid .plan-card{cursor:pointer;transition:border-color .15s,background .15s;position:relative}
.plan-pickgrid .plan-card:hover{border-color:#5a4522}
.plan-pickgrid .plan-card.on{border-color:#f0a43c;background:#171208;box-shadow:0 0 0 1px rgba(240,164,60,.28) inset}
.plan-check{position:absolute;top:10px;right:10px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:#1a1206;background:linear-gradient(160deg,#ffc26b,#f2671f);opacity:0;transform:scale(.7);transition:.15s}
.plan-pickgrid .plan-card.on .plan-check{opacity:1;transform:scale(1)}
.plan-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;padding:12px 14px;border:1px solid #2a3441;border-radius:12px;background:#0e131a}
.pc-main{display:flex;align-items:center;gap:8px;font-size:13px;color:#8b98a9;flex-wrap:wrap}
.pc-main b{color:#e8ecf2;font-size:14px}
.pc-main i{font-style:normal;color:#cfd9e5}
.pc-main em{font-style:normal;color:#ffcb6b;font-weight:700;font-size:15px}
.pc-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media (max-width:720px){
  .plan-cta{flex-direction:column;align-items:stretch}
  .pc-btns .btn{flex:1 1 45%}
}

/* 账户页顶部信息条（合并原三张统计卡） */
.statbar{display:grid;grid-template-columns:repeat(3,1fr);padding:0;overflow:hidden}
.sb-item{display:flex;flex-direction:column;gap:3px;padding:16px 20px;border-left:1px solid #232a34;min-width:0}
.sb-item:first-child{border-left:0}
.sb-item span{font-size:11.5px;color:#8b98a9;letter-spacing:.4px}
.sb-item b{font-size:26px;font-weight:800;color:#e8ecf2;line-height:1.15;letter-spacing:.4px}
.sb-item b small{font-size:12px;font-weight:500;color:#8b98a9;margin-left:3px}
.sb-item i{font-style:normal;font-size:11px;color:#6f7c8c;margin-top:2px;line-height:1.5}
@media (max-width:720px){
  .statbar{grid-template-columns:1fr 1fr}
  .sb-item{padding:12px 12px}
  .sb-item b{font-size:21px}
  .sb-item:nth-child(3){border-left:0;border-top:1px solid #232a34;grid-column:1/-1}
}

/* 点数包：选中卡内直接带支付 */
.plan-pickgrid .plan-card{display:flex;flex-direction:column}
.plan-go{margin-top:auto;padding-top:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.plan-go .btn{flex:0 0 auto}
.plan-go span{font-size:11.5px;color:#6f7c8c;line-height:1.5}
.cp-row{display:flex;gap:10px;align-items:center}
.cp-row input{flex:1 1 auto;min-width:0}
.cp-row .btn{flex:0 0 auto}
.empty-lite{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:26px 12px;border:1px dashed #262c36;border-radius:10px;background:#0e131a;text-align:center}
.empty-lite b{font-size:13px;color:#c3cddb;font-weight:600}
.empty-lite span{font-size:11.5px;color:#6f7c8c;line-height:1.6}
@media (max-width:720px){
  .cp-row{flex-direction:column;align-items:stretch}
  .cp-row .btn{width:100%}
  .plan-go .btn{width:100%}
}
.plan-go .btn.ghost{color:#9fb0c4}
.plan-go .btn.ghost:hover{color:#f0a43c;border-color:#5a4522}

/* 点数包：两列（左套餐列表 / 右结算面板） */
.pay-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}
.pay-plans{display:flex;flex-direction:column;gap:10px;min-width:0}
.plan-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #262c36;border-radius:12px;background:#12161c;cursor:pointer;transition:border-color .15s,background .15s;min-width:0}
.plan-row:hover{border-color:#4a3a1a}
.plan-row.on{border-color:#f0a43c;background:#171208}
.pr-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.pr-main b{font-size:14.5px;color:#e8ecf2}
.pr-main span{font-size:11.5px;color:#8b98a9;line-height:1.6}
.pr-num{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.pr-num b{font-size:20px;font-weight:800;color:#ffcb6b;line-height:1.15}
.pr-num b small{font-size:11px;font-weight:500;color:#a98a4d;margin-left:2px}
.pr-num em{font-style:normal;font-size:12px;color:#8b98a9}
.pr-check{width:18px;height:18px;flex:0 0 auto;border-radius:50%;border:1px solid #333b47;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;color:transparent;transition:.15s}
.plan-row.on .pr-check{background:linear-gradient(160deg,#ffc26b,#f2671f);border-color:transparent;color:#1a1206}
.pay-side{border:1px solid #2a3441;border-radius:14px;background:#0e131a;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.ps-head{font-size:11.5px;color:#8b98a9;letter-spacing:.5px}
.ps-plan{display:flex;flex-direction:column;gap:3px}
.ps-plan b{font-size:16px;color:#e8ecf2}
.ps-plan span{font-size:12px;color:#8b98a9}
.ps-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ps-price em{font-style:normal;font-size:27px;font-weight:800;color:#ffcb6b;line-height:1.1}
.ps-price i{font-style:normal;font-size:11.5px;color:#6f7c8c}
.ps-btns{display:flex;flex-direction:column;gap:8px}
.ps-note{font-size:11.5px;color:#6f7c8c;line-height:1.65}
.ps-kv{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:#8b98a9;border-top:1px solid #1e252e;padding-top:9px}
.ps-kv b{color:#cfd9e5;font-weight:500;text-align:right}
@media (max-width:1000px){
  .pay-wrap{grid-template-columns:1fr}
}
@media (max-width:720px){
  .plan-row{padding:12px 12px;gap:10px}
  .pr-main span{display:none}
}
