:root { --main: #ff7a59; --main2: #ffb347; --bg: #fff8f4; --text: #2b2b2b; --muted: #8a8079; --card: #fff; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; }
.hidden { display: none !important; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: linear-gradient(90deg, var(--main), var(--main2)); color: #fff; }
.brand { font-weight: 700; font-size: 18px; } .brand small { font-weight: 400; opacity: .9; font-size: 13px; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.6); white-space: nowrap; }
.badge.llm { background: #2fbf71; border-color: #2fbf71; }
main { max-width: 560px; margin: 0 auto; padding: 12px 12px 40px; }
.card { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(255,122,89,.08); }
h1 { font-size: 22px; margin: 6px 0; } h2 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.hero { text-align: center; padding: 28px 16px; }
.btns { display: flex; gap: 10px; justify-content: center; margin: 16px 0 8px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 12px; border: 1.5px solid var(--main); color: var(--main); background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--main); color: #fff; }
.link { background: none; border: none; color: var(--main); cursor: pointer; font-size: 14px; text-decoration: underline; margin-left: auto; }
.spinner { width: 36px; height: 36px; margin: 10px auto; border: 4px solid #ffe0d6; border-top-color: var(--main); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#stepLoading { text-align: center; }
.photo-card { padding: 8px; } #sceneCanvas { width: 100%; border-radius: 12px; display: block; }
.caption { font-size: 12px; color: var(--muted); margin: 6px 4px 0; }
.scene { display: grid; grid-template-columns: 56px 1fr; gap: 6px 8px; margin: 0 0 8px; }
.scene dt { color: var(--muted); font-size: 13px; } .scene dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 99px; border: 1px solid #e6dcd6; background: #fff; font-size: 13px; cursor: pointer; color: var(--muted); }
.chip.on { background: #fff0ea; border-color: var(--main); color: var(--main); font-weight: 600; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab { flex: 1; padding: 8px 4px; border-radius: 10px; border: 1px solid #f0e2db; background: #fffaf7; font-size: 13px; cursor: pointer; }
.tab.on { background: var(--main); color: #fff; border-color: var(--main); font-weight: 600; }
.comp .row { display: flex; gap: 8px; margin: 4px 0; } .comp .k { flex: 0 0 64px; color: var(--muted); font-size: 13px; }
.comp .why { background: #fff6e8; border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-top: 8px; }
.poses { display: grid; gap: 10px; }
.pose { display: flex; gap: 10px; border: 1px solid #f3e6df; border-radius: 12px; padding: 8px; align-items: center; }
.pose img { width: 76px; height: 76px; border-radius: 10px; flex: 0 0 auto; }
.pose .body { flex: 1; min-width: 0; }
.pose .name { font-weight: 700; } .pose .tags { font-size: 11px; color: var(--muted); }
.pose .say { margin: 4px 0; font-size: 15px; color: #c2410c; } .pose .say::before { content: "🗣️ "; }
.pose .tip { font-size: 12px; color: var(--muted); }
.pose .ops { display: flex; flex-direction: column; gap: 6px; }
.pose .ops button { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--main); background: #fff; color: var(--main); font-size: 12px; cursor: pointer; white-space: nowrap; }
.pose .ops button.go { background: var(--main); color: #fff; }
.pose.sel { border-color: var(--main); box-shadow: 0 0 0 2px #ffd6c9; }
.actions { text-align: center; }
/* 取景 */
.camera { position: fixed; inset: 0; background: #000; z-index: 20; }
.camera video, .camera #overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 8px; align-items: center; padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); background: linear-gradient(rgba(0,0,0,.55), transparent); color: #fff; }
.cam-script { flex: 1; text-align: center; font-size: 14px; } .cam-script b { display: block; font-size: 16px; }
.round { width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.2); color: #fff; font-size: 18px; cursor: pointer; }
.cam-bottom { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.cam-hint { color: #fff; text-align: center; font-size: 15px; min-height: 44px; text-shadow: 0 1px 3px #000; }
.cam-hint.ok { color: #7dffb0; font-weight: 700; }
.cam-ctrl { display: flex; justify-content: space-around; align-items: center; margin-top: 8px; }
.shutter { width: 70px; height: 70px; border-radius: 50%; border: 5px solid #fff; background: var(--main); cursor: pointer; }
.shot { position: absolute; inset: 0; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.shot img { max-width: 100%; max-height: 75vh; border-radius: 10px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; font-size: 14px; max-width: 90vw; }
