/* JEWEL MONSTER · 工作室样式（深祖母绿 + 翡翠光晕） */
.studio-hero { padding: 34px 0 10px; }
.studio-hero h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 6px; font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #ecdfbe 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-hero p { color: var(--muted); margin: 0; }

.studio-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; padding: 22px 0 60px; align-items: start; }
/* min-width:0 —— 网格子项的 min-content 默认会把整列撑宽，导致手机端元素出屏（实测 390px 视口下溢出 55px） */
.studio-grid > * { min-width: 0; }
@media (max-width: 920px) { .studio-grid { grid-template-columns: 1fr; } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-2); }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: 1px; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.panel h3 .h-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; }
.panel h3 .h-ico svg { width: 18px; height: 18px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }

.brief-area textarea {
  width: 100%; min-height: 110px; resize: vertical; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; font: inherit; font-size: 15px; background: var(--navy-2);
  color: var(--ink);
}
.brief-area textarea::placeholder { color: #6f86a3; }
.brief-area textarea:focus { outline: none; border-color: rgba(228,212,171,.6); background: var(--navy-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { font-size: 12.5px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.05); cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--gold); color: var(--gold); }

/* 品牌名输入 + 保存按钮：允许换行、input 可收缩（与「保存为我的品牌作品」按钮并排时曾把行撑出屏） */
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.brand-row input { flex: 1 1 120px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--navy-2); color: var(--ink); }
.brand-row input::placeholder { color: #6f86a3; }
.brand-row input:focus { outline: none; border-color: rgba(228,212,171,.6); }

/* 结果区 */
#result { display: none; }
#result.show { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.design-card { display: grid; grid-template-columns: 190px 1fr; gap: 18px; }
@media (max-width: 520px) { .design-card { grid-template-columns: 1fr; } }
.mockup { width: 190px; height: 190px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-2), var(--navy-deep)); display: grid; place-items: center; border: 1px solid var(--line); }
.design-card .d-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.design-card .d-style { font-size: 12.5px; color: var(--gold); letter-spacing: 1px; margin-bottom: 8px; }
.design-card .d-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.spec-list { list-style: none; margin: 14px 0 0; padding: 0; }
.spec-list li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.spec-list li .k { color: var(--muted); width: 84px; flex: none; }
.spec-list li .v { color: var(--ink); }

/* 报价面板 */
.quote { background: linear-gradient(135deg, #081625, #122e4c); color: #eaf1fb; border-radius: 14px; padding: 18px; border: 1px solid rgba(228,212,171,.18); }
.quote .qrow { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.quote .qrow .lbl { color: #9fb6d8; }
.quote .qrow .val { font-variant-numeric: tabular-nums; }
.quote .qtotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.quote .qtotal .lbl { font-size: 14px; color: #9fb6d8; }
.quote .qtotal .amt { font-size: 30px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.quote .disc { font-size: 11.5px; color: #7e93b3; margin-top: 10px; }
.breakdown { margin-top: 12px; }
.breakdown .brow { display: flex; justify-content: space-between; font-size: 12.5px; color: #c2d2ea; padding: 3px 0; }
.breakdown .brow .sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }

/* 流程步进：黄框 = 已计入报价；悬停出说明；点击加入/移出 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step-node { position: relative; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px 10px; text-align: center; cursor: pointer; transition: .18s; }
.step-node .si { display: flex; align-items: center; justify-content: center; height: 30px; color: #cdb87e; }
.step-node .si svg { width: 25px; height: 25px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.step-node .st { font-size: 12px; margin-top: 4px; color: var(--ink-2); }
.step-node.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px rgba(228,212,171,.22), 0 6px 18px rgba(196,171,116,.16); }
.step-node.on .si { color: #e8d6a4; }
.step-node.locked { cursor: default; }
.step-node.off { opacity: .42; cursor: not-allowed; }
.step-node:not(.locked):not(.off):hover { transform: translateY(-3px); border-color: rgba(228,212,171,.55); }
.step-node .tip { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translate(-50%, 5px); width: 200px; max-width: 74vw; padding: 10px 12px; background: rgba(8,22,37,.97); border: 1px solid rgba(228,212,171,.35); border-radius: 10px; text-align: left; font-size: 12px; line-height: 1.55; color: var(--ink-2); opacity: 0; pointer-events: none; transition: .18s; z-index: 30; box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.step-node .tip b { display: block; color: var(--gold-2); font-size: 12.5px; margin-bottom: 2px; }
.step-node .tip i { display: block; font-style: normal; color: #9fb6d8; font-size: 11px; margin-bottom: 4px; }
.step-node:hover .tip, .step-node:focus-within .tip { opacity: 1; transform: translate(-50%, 0); }

/* 加载 */
.loading { display: none; text-align: center; padding: 40px; color: var(--muted); }
.loading.show { display: block; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 聊天 */
.chat-log { height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--navy-2); margin-bottom: 10px; }
.chat-log .bubble { margin-bottom: 10px; font-size: 13.5px; line-height: 1.6; }
.chat-log .bubble .who { font-size: 11px; color: var(--gold); letter-spacing: 1px; }
.chat-log .bubble.user .who { color: var(--muted); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--navy-2); color: var(--ink); }
.chat-input-row input::placeholder { color: #6f86a3; }
.chat-input-row input:focus { outline: none; border-color: rgba(228,212,171,.6); }
.toast { position: fixed; bottom: calc(26px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: rgba(8,22,37,.96); color: var(--platinum); border: 1px solid rgba(228,212,171,.3); padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; }

/* ---------- 移动端自适应（工作室） ---------- */
@media (max-width: 520px) {
  .panel { padding: 16px; }
  .design-card { grid-template-columns: 1fr; }
  .mockup { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .spec-list li .k { width: 72px; flex: none; }
  .studio-hero { padding: 24px 0 6px; }
}
