/* 工作室首页 · 对照原型 XCStudio home，深空金 / 纸金 */

:root {
  --t1: rgba(242, 241, 234, 0.92);
  --t2: rgba(242, 241, 234, 0.6);
  --t3: rgba(242, 241, 234, 0.36);
  --chip: rgba(255, 255, 255, 0.032);
  --line-soft: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --gold: #f2e3ad;
  --gold-2: #dcc899;
  --gold-3: #c9b88f;
  --gold-soft-bg: rgba(242, 227, 173, 0.1);
  --gold-soft-line: rgba(242, 227, 173, 0.35);
  --gold-grad: linear-gradient(135deg, #f2e3ad, #dcc899);
  --hover-shadow: rgba(0, 0, 0, 0.32);
}

html:not(.theme-dark):not(.studio-theme-dark) {
  --t1: #26211a;
  --t2: #6b6456;
  --t3: #a59d8a;
  --chip: rgba(28, 26, 23, 0.045);
  --line-soft: rgba(28, 26, 23, 0.1);
  --line: rgba(28, 26, 23, 0.16);
  --line-strong: rgba(28, 26, 23, 0.26);
  --gold: #8a6d1f;
  --gold-2: #a3863e;
  --gold-3: #9a854e;
  --gold-soft-bg: rgba(138, 109, 31, 0.09);
  --gold-soft-line: rgba(138, 109, 31, 0.38);
  --gold-grad: linear-gradient(135deg, #ecd9a0, #d3ba82);
  --hover-shadow: rgba(80, 70, 40, 0.2);
}

body.xc-home {
  background: #070708;
  color: var(--t1);
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html:not(.theme-dark):not(.studio-theme-dark) body.xc-home {
  background: #f4f1e9;
}

.xc-home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.xc-home-nebula {
  position: absolute;
  inset: 0;
  background: url("/static/images/xc-studio-bg.jpg") center / cover no-repeat;
  opacity: 0.3;
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-home-nebula { opacity: 0.45; }

.xc-home-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(5, 5, 8, 0.12) 0%, rgba(5, 5, 8, 0.92) 88%);
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-home-veil {
  background: linear-gradient(180deg, rgba(247, 244, 237, 0.6) 0%, rgba(247, 244, 237, 0.3) 40%, rgba(244, 241, 233, 0.88) 100%);
}

body.xc-home { --xc-page-w: 1360px; }

body.xc-home .wb-page,
.xc-home .wb-page {
  position: relative;
  z-index: 1;
  width: min(var(--xc-page-w), calc(100% - 56px)) !important;
  max-width: min(var(--xc-page-w), calc(100% - 56px)) !important;
  margin: 0 auto !important;
  padding: 0 0 60px !important;
  box-sizing: border-box;
}

/* ===== ① 主操作区 ===== */
.xc-ops {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 16px;
  padding: 32px 0 18px;
}

.xc-create {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 38px 160px 38px 40px;
  min-height: 262px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, var(--gold-soft-bg), rgba(141, 122, 82, 0.04));
  border: 1px solid var(--gold-soft-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.xc-create-glow {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft-bg), transparent 70%);
  pointer-events: none;
}

.xc-create-mascots {
  position: absolute;
  right: 48px;
  top: 38%;
  bottom: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  pointer-events: auto;
}
.xc-create-mascot {
  position: relative;
  right: auto;
  top: auto;
}
.xc-create-mascot.is-director { z-index: 1; }
.xc-create-mascot.is-writer,
.xc-create-mascot.is-producer { display: none !important; }

.xc-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold-3);
  text-transform: uppercase;
}

.xc-create-title {
  margin: 10px 0 0;
  font-size: 34px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--t1);
}

.xc-create-lead {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.9;
  max-width: 430px;
}

/* ===== 主卡 CTA 行（原型 goldPill 逐值：金渐变 pill + 指引灰字） ===== */
.xc-create-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.xc-inspire-pill {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: var(--gold-grad);
  color: #0d0c08;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
}

.xc-create-note {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  font-family: inherit;
  color: var(--t3);
  cursor: pointer;
}
.xc-create-note:hover { color: var(--t2); }

.xc-create .wb-inspire[hidden] { display: none !important; }

.xc-create .wb-inspire {
  margin-top: 8px;
  background: rgba(8, 8, 10, 0.35);
  border: 1px solid var(--gold-soft-line);
  box-shadow: none;
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-create .wb-inspire {
  background: rgba(255, 255, 255, 0.7);
}

.xc-create .wb-inspire-ico {
  background: var(--gold-soft-bg);
  color: var(--gold);
}

.xc-create .wb-inspire-input { color: var(--t1); font-size: 13px; }

.xc-create .wb-inspire-go,
.xc-home .wb-btn.primary {
  background: var(--gold-grad);
  color: #0d0c08;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 16px;
  box-shadow: 0 6px 16px var(--gold-soft-bg);
}

.xc-create .wb-inspire-sop {
  border-color: var(--gold-soft-line);
  color: var(--t1);
}

.xc-create .wb-inspire-sop:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft-bg);
}

.xc-create .wb-start-row { margin-top: 4px; }

.xc-create .wb-start-btn,
.xc-ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--t2);
  border-radius: 999px;
}

.xc-create .wb-start-btn:hover,
.xc-ghost-btn:hover {
  color: var(--t1);
  border-color: var(--gold-soft-line);
  background: var(--gold-soft-bg);
}

.xc-create .wb-qi-lab,
.xc-create .wb-sec-sub { color: var(--t3); font-size: 11.5px; }

.xc-create .wb-qi-chip,
.xc-create .wb-tpl-chip {
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--t2);
}

.xc-create .wb-qi-chip:hover,
.xc-create .wb-tpl-chip:hover {
  color: var(--t1);
  border-color: var(--gold-soft-line);
}

.xc-ops-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xc-side-card {
  position: relative;
  flex: 1;
  border-radius: 18px;
  padding: 18px 88px 18px 18px;
  background: var(--chip);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.xc-side-mascot {
  position: absolute;
  right: 10px;
  bottom: 2px;
  width: 78px;
  pointer-events: none;
}
.xc-side-mascot img {
  display: block;
  width: 100%;
  height: auto;
}

.xc-side-card:hover,
.xc-create:hover,
.xc-proj-card:hover,
.xc-proj-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px var(--hover-shadow);
  border-color: var(--gold-soft-line);
}

.xc-side-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.xc-side-ico.canvas {
  background: rgba(150, 190, 220, 0.12);
  border: 1px solid rgba(150, 190, 220, 0.3);
  color: #a9d0e8;
}

.xc-side-ico.gen {
  background: rgba(150, 170, 210, 0.12);
  border: 1px solid rgba(150, 170, 210, 0.3);
  color: #a9c0e8;
}

.xc-side-title { font-size: 17px; font-weight: 800; }
.xc-side-desc { font-size: 12px; color: var(--t2); line-height: 1.7; margin-top: 2px; }

.xc-user-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xc-home .wb-user-card {
  background: var(--chip);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  color: var(--t1);
}

.xc-home .wb-user-card .u-info h4 { color: var(--t1); }
.xc-home .wb-user-card .u-info p { color: var(--t2); }

.xc-home .wb-guide {
  background: var(--chip);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  color: var(--t1);
}

.xc-home .wb-guide h5 { color: var(--t1); }
.xc-home .wb-guide .d,
.xc-home .wb-guide p { color: var(--t2); }

.xc-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.xc-home .wb-stat {
  background: var(--chip);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px 8px;
}

.xc-home .wb-stat .v { color: var(--gold) !important; }
.xc-home .wb-stat .l,
.xc-home .wb-stat .d { color: var(--t3); }

/* ===== ② 公告长条 ===== */
.xc-band {
  margin: 10px 0 8px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  min-height: 118px;
  background: rgba(12, 12, 15, 0.9);
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-band { border-color: rgba(28, 26, 23, 0.16); }

.xc-band-art {
  width: 210px;
  flex-shrink: 0;
  position: relative;
  background: url("/static/images/xc-studio-bg.jpg") center / cover no-repeat;
}

.xc-band-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 8, 0.05) 0%, rgba(5, 5, 8, 0.9) 100%);
}

.xc-band-art span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-left: 22px;
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.xc-band-main {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0 26px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.xc-band-title { font-size: 17px; font-weight: 800; color: rgba(242, 241, 234, 0.92); }
.xc-band-desc { font-size: 12.5px; color: rgba(242, 241, 234, 0.6); line-height: 1.7; max-width: 700px; }

.xc-band-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 0 26px;
}

.xc-band-go {
  border: 0;
  background: none;
  color: #f2e3ad;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.xc-band-dots { display: flex; align-items: center; gap: 5px; }
.xc-band-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--t3);
  display: inline-block;
}
.xc-band-dots i.on { background: var(--gold); }
.xc-band-dots b { font-size: 10px; color: rgba(242, 241, 234, 0.36); font-weight: 500; margin-right: 4px; }
html:not(.theme-dark):not(.studio-theme-dark) .xc-band-dots i { background: rgba(242, 241, 234, 0.36); }
html:not(.theme-dark):not(.studio-theme-dark) .xc-band-dots i.on { background: #f2e3ad; }

.xc-home .wb-promo { margin: 8px 0 4px; }

/* ===== ③ 最近项目 ===== */
.xc-sec-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0 18px;
}

.xc-sec-head h2 {
  margin: 0;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}

.xc-sec-head .sub { font-size: 11.5px; color: var(--t2); }

.xc-sec-head .more,
.xc-home .wb-sec-head .more {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--t2);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}

.xc-proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.xc-proj-fill { display: contents; }

.xc-proj-new,
.xc-proj-card {
  border-radius: 18px;
  padding: 16px;
  min-height: 206px;
  background: var(--chip);
  border: 1px solid var(--line-soft);
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.xc-proj-new {
  padding: 18px;
  border-style: dashed;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.xc-proj-plus {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--gold-soft-bg);
  border: 1px solid var(--gold-soft-line);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.xc-proj-new b { font-size: 14px; font-weight: 800; }
.xc-proj-new small { font-size: 11px; color: var(--t3); }

.xc-proj-cover {
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--line-strong);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(201, 184, 143, 0.5), var(--chip));
}

.xc-proj-cover img,
.xc-proj-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xc-proj-card .info { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; min-width: 0; }
.xc-proj-card h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xc-proj-card .meta { font-size: 11.5px; color: var(--t2); }
.xc-proj-open { margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--gold); }

.xc-home .wb-plan-steps { margin-top: 6px; }
.xc-home .wb-plan-steps .step { color: var(--t3); }
.xc-home .wb-plan-steps .step.done { color: #8fd6c3; }
.xc-home .wb-plan-steps .step.cur { color: var(--gold); }

.xc-proj-grid .wb-empty {
  grid-column: 2 / -1;
  background: transparent;
  border-style: dashed;
  color: var(--t3);
}

/* ===== 新建项目弹窗（原型 newProj 逐值：460 宽 / radius 22 / 2 列 4 卡） ===== */
.xc-home { --modal-bg: #14120e; --modal-mask: rgba(3, 3, 5, 0.8); }
html:not(.theme-dark):not(.studio-theme-dark) .xc-home {
  --modal-bg: rgba(250, 248, 242, 0.97);
  --modal-mask: rgba(60, 54, 40, 0.35);
}

.xc-np-mask {
  position: fixed;
  inset: 0;
  z-index: 108;
  background: var(--modal-mask);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.xc-np-mask[hidden] { display: none; }

.xc-np {
  width: 460px;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
  background: var(--modal-bg);
  border: 1px solid var(--gold-soft-bg);
  border-radius: 22px;
  padding: 24px 26px;
}

.xc-np-head { display: flex; align-items: center; }
.xc-np-head span { font-size: 17px; font-weight: 800; }
.xc-np-x {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--t2);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}
.xc-np-sub { font-size: 12.5px; color: var(--t2); margin: 6px 0 16px; }

.xc-np-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.xc-np-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 14px;
  background: var(--chip);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.xc-np-item .ic { font-size: 22px; }
.xc-np-item b { display: block; font-size: 14.5px; font-weight: 800; margin-top: 8px; }
.xc-np-item small { display: block; font-size: 11px; color: var(--t2); margin-top: 4px; line-height: 1.6; }

/* ===== 现网保留区 ===== */
.xc-more {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.xc-home .wb-sec-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--t1);
}

.xc-home .wb-qcard,
.xc-home .wb-skill,
.xc-home .wb-feed-item,
.xc-home .wb-notice-row {
  background: var(--chip);
  border: 1px solid var(--line-soft);
  color: var(--t1);
}

.xc-home .wb-qcard h5,
.xc-home .wb-skill .t { color: var(--t1); }
.xc-home .wb-qcard p,
.xc-home .wb-skill .d { color: var(--t2); }

.xc-home .wb-quick { gap: 10px; }
.xc-home .wb-skills-sec { margin-top: 8px; }

.xc-home .wb-empty {
  background: transparent;
  border-color: var(--line);
  color: var(--t3);
}

.xc-home .wb-coach-tip {
  background: #14120e;
  border: 1px solid var(--gold-soft-line);
  color: var(--t1);
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-home .wb-coach-tip {
  background: rgba(250, 248, 242, 0.97);
}

/* ===== 新手指引 · 居中模态卡（对齐原型 showGuide：430 宽 / radius 24 / 遮罩+blur） ===== */
.xc-home .wb-coach { pointer-events: auto; }
.xc-home .wb-coach-scrim,
.xc-home .wb-coach.is-parent-step .wb-coach-scrim {
  background: var(--modal-mask) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.xc-home .wb-coach-hole,
.xc-home .wb-coach-pulse { display: none !important; }
.xc-home .wb-coach-tip {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 430px !important;
  max-width: calc(100vw - 40px);
  border-radius: 24px !important;
  padding: 36px 34px 26px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5) !important;
  animation: wbCoachModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wbCoachModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.xc-home .wb-coach-kicker {
  font-size: 11px !important;
  letter-spacing: 3px !important;
  color: var(--gold-3) !important;
}
.xc-home .wb-coach-tip h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  margin: 0 0 10px !important;
}
.xc-home .wb-coach-tip p {
  font-size: 13.5px !important;
  line-height: 1.9 !important;
}
.xc-home .wb-coach-acts {
  margin-top: 18px !important;
  gap: 12px !important;
}
.xc-home .wb-coach-acts .wb-btn.small {
  padding: 9px 22px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
}
.xc-home .wb-coach-acts .wb-btn.ghost.small {
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--t2) !important;
}

@media (max-width: 980px) {
  .xc-ops,
  .xc-more,
  .xc-proj-grid { grid-template-columns: 1fr 1fr; }
  .xc-create-mascot { display: none; }
  .xc-band { flex-wrap: wrap; }
  .xc-band-art { width: 100%; min-height: 64px; }
}

@media (max-width: 640px) {
  .xc-ops,
  .xc-more,
  .xc-proj-grid,
  .xc-stats-mini { grid-template-columns: 1fr; }
  .xc-home .wb-page { padding: 8px 14px 40px; }
  .xc-create { padding: 16px 14px; }
  .xc-create-title { font-size: 17px; }
}
