/* 调色卡 */
.pcard { margin-top: 10px; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px rgba(60,50,20,.1); overflow: hidden; }
.pc-strip { display: flex; height: 54px; } .pc-strip span { flex: 1; }
.pc-strip.big { height: 70px; border-radius: 16px; overflow: hidden; margin: 12px 0; }
.pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px 4px; }
.pc-head h3 { font-size: 21px; line-height: 1.2; } .pc-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pc-tag { flex: none; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--green-l); color: var(--green-d); font-weight: 700; }
.pc-list { list-style: none; margin: 0; padding: 4px 14px; }
.pc-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pc-sw { width: 42px; height: 42px; border-radius: 50% 50% 50% 14%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pc-info { flex: 1; min-width: 0; } .pc-info p { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.pc-info code { font-size: 11px; color: var(--ink-3); font-family: ui-monospace, Consolas, monospace; }
.pc-info small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.pc-recipe { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.rc { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 3px; border-radius: 10px; background: #F6F2E8; font-size: 11.5px; }
.rc i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); } .rc em { font-style: normal; font-weight: 700; color: var(--green-d); }
.pc-sim { flex: none; width: 40px; height: 40px; border-radius: 12px; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pc-sim span { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--green-d); white-space: nowrap; }
.pc-paints { margin: 8px 14px 0; padding: 10px; border-radius: 14px; background: #F7F3EA; }
.pc-paints p { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; } .pc-paints div { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-paints a { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--green-d); font-weight: 700; }
.tube { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 9px; background: #fff; font-size: 12px; }
.tube::before { content: ""; width: 9px; height: 16px; border-radius: 3px 3px 2px 2px; background: var(--c); box-shadow: inset 0 3px 0 #222; }
.pc-actions { display: flex; gap: 6px; padding: 12px 14px 4px; }
.pc-actions button { flex: 1; height: 36px; border-radius: 18px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pc-actions button.primary { flex: 1.6; background: var(--green); border-color: var(--green); color: #fff; }
.pc-actions button.on { color: var(--green-d); border-color: var(--mint); background: var(--green-l); }
.pc-art { display: grid; gap: 8px; padding: 0 14px; } .pc-art:not(:empty) { padding-top: 10px; }
.pc-art > img { width: 100%; border-radius: 14px; cursor: zoom-in; animation: pageIn .5s both; }
.pc-note { font-size: 10.5px; color: var(--ink-3); text-align: center; padding: 8px 0 10px; }
.painting { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--green-l); }
.painting.center { margin: 120px 24px; }
.painting img { width: 64px; height: 80px; object-fit: contain; animation: bob 1.6s ease-in-out infinite; }
.painting b { font-size: 14px; } .painting p { font-size: 12px; color: var(--ink-2); }
.bar { display: block; height: 5px; border-radius: 3px; background: rgba(18,161,80,.15); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--green); animation: load 1.4s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* 弹层内容 */
.ps-top { display: flex; gap: 12px; align-items: center; } .ps-top img { width: 70px; height: 90px; object-fit: contain; }
.ps-top h3 { font-size: 20px; } .ps-top p { font-size: 13px; color: var(--ink-3); }
.ps-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; }
.ps textarea { width: 100%; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: 13px; resize: none; outline: none; background: #fff; }
.viewer img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); } .viewer .btn + .btn { margin-top: 8px; }
.viewer.share img { max-height: 62vh; width: auto; margin: 0 auto; }
.done-sheet { text-align: center; } .done-sheet img { height: 220px; margin: 0 auto; } .done-sheet h3 { font-size: 24px; margin-top: 6px; }
.done-sheet p { color: var(--ink-3); font-size: 14px; }
.pi-btns { display: flex; gap: 10px; margin-top: 14px; } .pi-btns .btn { flex: 1; padding: 0 10px; font-size: 14px; }

/* 拍照读色 */
.photo-intro, .photo-res { padding: 12px 16px; }
.photo-intro { text-align: center; } .pi-girl { height: 270px; margin: 0 auto; }
.photo-intro h2 { font-size: 24px; margin-top: 6px; } .photo-intro > p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.photo-intro .ps-label { text-align: left; margin-top: 24px; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.samples button { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); font-size: 12px; }
.samples img { width: 100%; height: 96px; object-fit: cover; } .samples span { display: block; padding: 5px 0; }
.pr-img { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); cursor: crosshair; }
.pr-img img { width: 100%; max-height: 420px; object-fit: contain; background: #222; }
.pin { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); pointer-events: none; transition: .2s; }
.pin.on { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-color: var(--yellow); }
.pr-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pr-swatches button { padding: 6px 2px; border-radius: 12px; background: #fff; border: 2px solid transparent; font-size: 11px; line-height: 1.3; }
.pr-swatches button.on { border-color: var(--green); }
.pr-swatches i { display: block; width: 38px; height: 38px; margin: 0 auto 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pr-swatches code { display: block; font-size: 9.5px; color: var(--ink-3); } .pr-swatches small { color: var(--green-d); font-weight: 700; }
.pr-bar { height: 14px; border-radius: 7px; margin-top: 12px; }

/* 实验室 */
.lab { padding: 4px 16px; }
.ch-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; text-align: center; }
.ch-nav b { display: block; font-family: var(--title); font-weight: 400; font-size: 20px; } .ch-nav span { font-size: 12px; color: var(--ink-3); }
.ch-nav button { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); position: relative; }
.ch-nav button::after { content: ""; position: absolute; left: 14px; top: 13px; width: 9px; height: 9px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
#chNext::after { left: 11px; transform: rotate(-135deg); }
.mixer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; padding: 18px 10px; border-radius: 24px; background: url(../assets/scene/paper.webp) center/300px, #fff; box-shadow: var(--shadow); min-height: 200px; }
.goal { text-align: center; font-size: 12px; } .goal span { display: block; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 6px; box-shadow: 0 0 0 4px #fff, 0 3px 10px rgba(0,0,0,.15); }
.goal code { font-size: 10px; color: var(--ink-3); }
.blob-wrap { position: relative; width: 160px; height: 160px; }
.blob { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); } .blob path { transition: fill .35s; }
.blob-hex, .blob-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 15px; }
.blob-empty { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.score { text-align: center; color: var(--red); } .score b { font-family: var(--title); font-weight: 400; font-size: 40px; line-height: 1; }
.score.ok { color: #D9A200; } .score.great { color: var(--green); } .score small { display: block; font-size: 10px; color: var(--ink-3); }
.mix-name { text-align: center; font-size: 14px; margin: 12px 0 6px; color: var(--ink-2); }
.recipe-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 30px; }
.rp { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 6px; border-radius: 14px; background: #fff; font-size: 12.5px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.rp i { width: 14px; height: 14px; border-radius: 50%; } .rp b { color: var(--green-d); }
.rp button { width: 22px; height: 22px; border-radius: 50%; background: #F1ECE1; font-weight: 700; line-height: 1; }
.lab-actions { display: flex; gap: 8px; margin: 14px 0 18px; } .lab-actions .btn { flex: 1; padding: 0 8px; font-size: 13px; height: 40px; }
.answer { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #FFF6D8; margin: -6px 0 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.answer i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; }
.paint-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 4px; }
.paint-grid button { font-size: 11px; color: var(--ink-2); }
.paint-grid i { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0 auto 3px; border-radius: 50%; transition: transform .1s;
  box-shadow: inset -3px -4px 0 rgba(0,0,0,.12), inset 3px 3px 0 rgba(255,255,255,.3), 0 2px 5px rgba(0,0,0,.1); }
.paint-grid button:active i { transform: scale(.88); }
.paint-grid button.on i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green); }
.paint-grid em { font-style: normal; font-weight: 700; font-size: 13px; min-width: 22px; height: 22px; border-radius: 11px; background: #fff; color: var(--ink); line-height: 22px; }
.tipbox { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 10px 12px; border-radius: 16px; background: var(--green-l); }
.tipbox img { width: 60px; height: 76px; object-fit: contain; flex: none; } .tipbox p { font-size: 12.5px; color: var(--ink-2); } .tipbox b { display: block; color: var(--green-d); }
