/* 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); }

/* 场景灵感下拉菜单（28 类） */
.picker-label { display: block; font-size: 12.5px; color: #6f86a3; margin: 4px 0 6px; letter-spacing: .02em; }
.prompt-menu { width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; color: var(--ink); background-color: var(--navy-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 38px 11px 16px; cursor: pointer; margin-bottom: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cdb87e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.prompt-menu:focus { outline: none; border-color: rgba(228,212,171,.6); background-color: var(--navy-3); }
.prompt-menu option { color: #111; }

/* 品牌名输入 + 保存按钮：允许换行、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, #071f16, #12452f); color: #eef5f0; border-radius: 14px; padding: 18px; border: 1px solid rgba(214,232,221,.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: #8aa898; }
.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: #8aa898; }
.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: #7e9d8c; margin-top: 10px; }
.breakdown { margin-top: 12px; }
.breakdown .brow { display: flex; justify-content: space-between; font-size: 12.5px; color: #c9dccf; padding: 3px 0; }
.breakdown .brow .sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }

/* 报价数据来源：把「价格是怎么来的」摆到明面 */
.quote .qsrc { margin-top: 12px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(214,232,221,.14); }
.quote .qsrc-row { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; line-height: 1.9; }
.quote .qsrc-row .k { flex: 0 0 56px; color: #7f9b8b; }
.quote .qsrc-row .v { color: #d6e8dd; }
.quote .qsrc-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6c7b73; margin-right: -2px; }
.quote .qsrc-dot.on { background: #58b48f; box-shadow: 0 0 0 3px rgba(88,180,143,.18); }

/* 流程步进：黄框 = 已计入报价；悬停出说明；点击加入/移出 */
.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; }
}

/* 品牌橱窗 · 作品「出让」入口（2026-10） */
.piece .piece-sell {
  display: inline-block; margin-top: 9px; font-size: 12.5px; font-weight: 600;
  padding: 6px 16px; border-radius: 9999px; background: #0d3221; color: #f3f7f2;
  text-decoration: none; transition: .18s;
}
.piece .piece-sell:hover { background: #164a33; }

/* ---------- 设计模型下拉（用户自选参与设计的大模型） ---------- */
.model-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.model-row label { font-size: 12.5px; font-weight: 600; color: var(--muted, #5c6b62); white-space: nowrap; }
.model-sel {
  flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 9px 12px;
  border: 1px solid rgba(13,50,33,.22); border-radius: 9999px; background: #fff; color: #0d3221;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%230d3221' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; cursor: pointer;
}
.model-sel:focus { outline: none; border-color: rgba(13,50,33,.5); }
.model-tag { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 9999px; white-space: nowrap; }
.model-tag:not(.paid) { color: #0d6b3f; background: rgba(13,107,63,.12); }
.model-tag.paid { color: #9a6b00; background: rgba(226,170,40,.16); }
.model-tag.paused { color: #8a5e00; background: rgba(226,170,40,.14); border: 1px solid rgba(226,170,40,.34); }
/* 自动选路：系统挑模型，这里只做「告知」不做「选择」——避免用户误以为自己在指定模型 */
.model-auto { flex: 1; min-width: 0; font-size: 12px; color: var(--muted, #5c6b62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 结果区：本次使用的设计模型角标 */
.d-model { margin: 8px 0 2px; }
.d-model-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 9999px; }
.d-model-chip:not(.paid) { color: #0d6b3f; background: rgba(13,107,63,.1); border: 1px solid rgba(13,107,63,.22); }
.d-model-chip.paid { color: #8a5e00; background: rgba(226,170,40,.14); border: 1px solid rgba(226,170,40,.34); }

/* ===== 页脚栅格布局补齐（studio.html 不加载 index-arcade.css，布局规则从该文件对齐复制；颜色由 chrome.css/theme-5 负责） ===== */
.footer { padding: 58px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-brand p { font-size: 13.5px; font-weight: 300; max-width: 260px; margin-top: 14px; }
.footer-col h5 { font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; font-weight: 300; padding: 4.5px 0; transition: .15s; }
.footer-bottom { border-top: 1px solid rgba(247,244,240,.14); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 300; }
.footer-social { display: flex; gap: 16px; }
.footer-bottom .foot-src { flex: 1 1 100%; font-size: 11.5px; line-height: 1.7; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
