/* 云丹漫剧 · 我的项目（接手方新建）— 全屏整页，深色橙色，跟平台一致 */
.zm-pj-mask {
  --g1: #ffa94d; --g2: #f2762b;
  --bg: #0b0d10; --panel: #14181c; --panel-2: #1b2026;
  --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .16);
  --t1: #fff; --t2: rgba(255, 255, 255, .64); --t3: rgba(255, 255, 255, .40);
  position: fixed; inset: 0; z-index: 4000;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--t1); animation: zm-pj-in .16s ease;
}
@keyframes zm-pj-in { from { opacity: 0; } to { opacity: 1; } }

.zm-pj-box {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: radial-gradient(1100px 560px at 80% -12%, rgba(255, 169, 77, .07), transparent 60%), var(--bg);
}

/* 顶栏 */
.zm-pj-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.zm-pj-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; }
.zm-pj-title svg { width: 20px; height: 20px; color: var(--g1); }
.zm-pj-sp { flex: 1; }
.zm-pj-search { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.zm-pj-search svg { width: 15px; height: 15px; color: var(--t3); flex: none; }
.zm-pj-search input { border: 0; outline: 0; background: transparent; color: var(--t1); font-family: inherit; font-size: 13px; width: 180px; }
.zm-pj-new {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border: 0; border-radius: 10px; background: var(--g1); color: #241300;
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: filter .14s ease, transform .1s ease;
}
.zm-pj-new svg { width: 16px; height: 16px; }
.zm-pj-new:hover { filter: brightness(1.08); }
.zm-pj-new:active { transform: scale(.97); }
.zm-pj-x { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--t2); cursor: pointer; }
.zm-pj-x svg { width: 18px; height: 18px; }
.zm-pj-x:hover { background: rgba(255, 255, 255, .12); color: var(--t1); }

/* 项目网格 */
.zm-pj-grid {
  flex: 1; overflow-y: auto; align-content: start;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; padding: 24px;
}
.zm-pj-empty { grid-column: 1 / -1; padding: 90px 20px; text-align: center; color: var(--t3); font-size: 14px; line-height: 1.9; }

.zm-pj-card {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.zm-pj-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g1) 46%, transparent); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.zm-pj-cover { position: relative; aspect-ratio: 16 / 10; background: #0d1013; overflow: hidden; }
.zm-pj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-pj-cover-ph { width: 100%; height: 100%; display: grid; place-items: center; gap: 8px; color: var(--t3); background: linear-gradient(135deg, #12161a, #0d1013); }
.zm-pj-cover-ph svg { width: 34px; height: 34px; opacity: .5; }
.zm-pj-cover-ph span { font-size: 12px; }
.zm-pj-style { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 6px; font-size: 11px; color: #fff; background: rgba(10, 12, 14, .74); backdrop-filter: blur(6px); }
.zm-pj-del, .zm-pj-ren { position: absolute; top: 10px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(10, 12, 14, .7); color: #fff; cursor: pointer; opacity: 0; transition: opacity .14s ease, background .14s ease; }
.zm-pj-del { right: 10px; }
.zm-pj-ren { right: 48px; }
.zm-pj-del svg, .zm-pj-ren svg { width: 15px; height: 15px; }
.zm-pj-card:hover .zm-pj-del, .zm-pj-card:hover .zm-pj-ren { opacity: 1; }
.zm-pj-del:hover { background: rgba(255, 80, 80, .85); }
.zm-pj-ren:hover { background: var(--g1); color: #241300; }
.zm-pj-open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: var(--g1); color: #241300; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
.zm-pj-open svg { width: 15px; height: 15px; }
.zm-pj-card:hover .zm-pj-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.zm-pj-body { padding: 12px 14px 14px; }
.zm-pj-name { font-size: 14.5px; font-weight: 600; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-pj-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--t3); }
.zm-pj-meta span { display: inline-flex; align-items: center; gap: 4px; }
.zm-pj-meta svg { width: 13px; height: 13px; }
.zm-pj-meta .zm-pj-time { margin-left: auto; }

/* ---------- 创建项目弹窗 ---------- */
.zm-pj-modal-mask {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center;
  background: rgba(4, 6, 8, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: zm-pj-in .16s ease;
}
.zm-pj-modal { width: min(880px, 94vw); max-height: 92vh; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); overflow: hidden; }
.zm-pj-modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.zm-pj-modal-head span { flex: 1; }
.zm-pj-modal-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 22px 24px; }
.zm-pj-col { display: flex; flex-direction: column; min-width: 0; }
.zm-pj-lb { font-size: 13px; color: var(--t2); font-weight: 600; margin: 16px 0 9px; }
.zm-pj-col > .zm-pj-lb:first-child { margin-top: 0; }
.zm-pj-opt { font-weight: 400; color: var(--t3); font-size: 11.5px; }
.zm-pj-in, .zm-pj-ta { border: 1px solid var(--line-2); background: rgba(0, 0, 0, .22); color: var(--t1); font-family: inherit; border-radius: 10px; padding: 11px 13px; font-size: 13.5px; outline: none; transition: border-color .14s ease; }
.zm-pj-in:focus, .zm-pj-ta:focus { border-color: var(--g1); }
.zm-pj-ta { flex: 1; min-height: 150px; resize: none; line-height: 1.6; }

.zm-pj-seg { display: flex; gap: 8px; }
.zm-pj-seg button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--t2); font-family: inherit; cursor: pointer; transition: all .14s ease; }
.zm-pj-seg button b { font-size: 13.5px; font-weight: 600; }
.zm-pj-seg button i { font-size: 11px; color: var(--t3); font-style: normal; }
.zm-pj-seg button:hover { border-color: rgba(255, 255, 255, .28); color: var(--t1); }
.zm-pj-seg button.zm-on { border-color: var(--g1); background: color-mix(in srgb, var(--g1) 15%, transparent); color: #fff; }
.zm-pj-seg button.zm-on i { color: color-mix(in srgb, var(--g1) 70%, #fff); }
.zm-pj-seg-sm button { flex-direction: row; gap: 6px; padding: 9px 8px; font-size: 13px; }

.zm-pj-ar { display: inline-block; border: 1.4px solid currentColor; border-radius: 2px; opacity: .8; }
.zm-pj-ar-h { width: 16px; height: 10px; }
.zm-pj-ar-v { width: 10px; height: 16px; }
.zm-pj-ar-sh { width: 15px; height: 11px; }
.zm-pj-ar-sv { width: 11px; height: 15px; }

.zm-pj-styles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 10px; margin-top: 2px; overflow-y: auto; max-height: 320px; padding: 2px; }
.zm-pj-styles-empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--t3); font-size: 12px; }
.zm-pj-style-card { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #0d1013; cursor: pointer; padding: 0; transition: border-color .14s ease, transform .12s ease; }
.zm-pj-style-card img, .zm-pj-style-ph { width: 100%; height: 116px; object-fit: cover; display: block; background: #12161a; }
.zm-pj-style-nm { display: block; width: 100%; padding: 6px 4px; font-size: 11.5px; color: var(--t2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.zm-pj-style-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }
.zm-pj-style-card.zm-on { border-color: var(--g1); }
.zm-pj-style-card.zm-on .zm-pj-style-nm { color: #fff; }
.zm-pj-style-card.zm-on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: var(--g1); color: #241300; font-size: 12px; font-weight: 700; }

.zm-pj-modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.zm-pj-cancel { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--t2); font-family: inherit; font-size: 13.5px; cursor: pointer; }
.zm-pj-cancel:hover { background: rgba(255, 255, 255, .06); color: var(--t1); }
.zm-pj-create { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border: 0; border-radius: 10px; background: var(--g1); color: #241300; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: filter .14s ease; }
.zm-pj-create svg { width: 15px; height: 15px; }
.zm-pj-create:hover { filter: brightness(1.08); }
.zm-pj-create:disabled { opacity: .6; cursor: default; }

.zm-pj-toast { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(10px); z-index: 4200; padding: 11px 20px; border-radius: 999px; background: rgba(20, 24, 29, .94); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 13.5px; box-shadow: 0 14px 44px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.zm-pj-toast.zm-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
  .zm-pj-modal-body { grid-template-columns: 1fr; }
  .zm-pj-search input { width: 110px; }
}
