* { box-sizing:border-box }
body { font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif; color:#142d3a; background:white }
button,input { font:inherit; color:inherit }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation }
button { cursor:pointer; border:0; background:none; padding:0 }
a { text-decoration:none; color:inherit }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #1bb4eb; outline-offset:-3px }
[hidden] { display:none!important }
.app { background:white }
.brandbar { height:58px; flex:none; display:flex; align-items:center; justify-content:space-between; padding:0 19px; border-bottom:1px solid #ddeaf0; background:white }
.brandbar a { display:flex; align-items:center }
.brandbar img { width:134px; height:35px; object-fit:contain; object-position:left center }
.brandbar b { color:#405d70; font-size:14px; letter-spacing:.01em }
.feed { flex:1; min-height:0; overflow:auto; scroll-snap-type:y mandatory; scrollbar-width:none; overscroll-behavior:contain; background:#0e202a }
.feed::-webkit-scrollbar { display:none }
.card { position:relative; width:100%; height:100%; min-height:100%; scroll-snap-align:start; scroll-snap-stop:always; overflow:hidden; isolation:isolate }
.shots,.movie-shade,.role-shade,.shot,.hero-image { position:absolute; inset:0; width:100%; height:100% }
.shots { background:#84683d }
.shot,.hero-image { object-fit:cover }
.shot { opacity:0; transition:opacity .65s ease; object-position:48% 42%; transform:scale(var(--shot-scale,1)) }
.shot.visible { opacity:1 }
.movie-shade { background:linear-gradient(180deg,rgba(0,0,0,.37),transparent 22%,transparent 39%,rgba(6,20,28,.14) 55%,rgba(6,20,28,.82) 76%,#091923 100%) }
.topline { position:absolute; top:17px; left:17px; right:17px; display:flex; align-items:center; justify-content:space-between; gap:6px; z-index:2; color:white }
.glass,.tools button,.art-control,.voice { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; border:1px solid #ffffff66; background:#14232dbf; color:white }
.glass { min-height:31px; padding:4px 10px; gap:6px; font-size:12px; font-weight:650 }
[data-glyph] { display:inline-flex; align-items:center; justify-content:center; width:19px; height:19px; flex:none }
[data-glyph] svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.75 }
.glass [data-glyph] { width:15px; height:15px }
.tools { display:flex; gap:6px }
.tools button,.art-control { width:36px; height:36px; font-size:11px; font-weight:750 }
#captions[aria-pressed="false"] { opacity:.67 }
.drama-info { position:absolute; left:20px; right:20px; bottom:20px; color:white }
.voice { gap:5px; padding:5px 9px; width:max-content; font-size:10px; font-weight:600; font-variant-numeric:tabular-nums }
.voice .wave { color:#c4f0fa; letter-spacing:1px }
.voice [data-glyph] { width:12px; height:12px }
.subtitle { min-height:1.5em; margin:10px 0 clamp(18px,4cqh,40px); font-size:clamp(16px,4.8cqw,22px); font-weight:650; line-height:1.36; text-shadow:0 1px 7px #11212b }
.episode { display:flex; align-items:center; gap:8px; color:#dff3fc; font-weight:600; font-size:12px }
.episode::before { content:""; width:22px; height:2px; background:#86d9ee }
.drama-info h1 { margin:5px 0 10px; font:italic 500 clamp(32px,9.9cqw,47px)/1.04 Georgia,serif; letter-spacing:-1.5px }
.timeline { display:flex; align-items:center; gap:7px; font-size:10px; color:#e2eaf2; font-variant-numeric:tabular-nums }
.timeline button { display:grid; place-items:center; color:white; width:28px; height:32px }
.timeline [data-glyph] { width:15px; height:15px }
.meter { flex:1; height:3px; overflow:hidden; border-radius:4px; background:#ffffff4a }
.meter i { display:block; height:100%; width:0; background:#f44c9f }
.actions { display:grid; grid-template-columns:1.45fr 1fr; gap:8px; margin-top:10px }
.actions a { min-height:44px; display:flex; gap:7px; align-items:center; justify-content:center; border-radius:10px; font-size:14px; font-weight:700 }
.actions .primary { background:#f6fbff; color:#123747 }
.actions .secondary { background:#233e4d; color:#e6f6ff; border:1px solid #8ba4b2 }
.role { display:flex; flex-direction:column; background:#fff; color:#183242 }
.hero { position:relative; flex:1; min-height:80px; overflow:hidden; background:#1b2d3c }
.hero-image { object-position:48% 42%; animation:portrait-breathe 10s ease-in-out infinite alternate; animation-play-state:paused }
.role.moving .hero-image { animation-play-state:running }
@keyframes portrait-breathe { from{transform:scale(1)} to{transform:scale(1.065)} }
.role-shade { background:linear-gradient(180deg,#09121d52,transparent 22%,transparent 54%,#101420d6 100%) }
.identity { position:absolute; inset:auto 18px 16px; color:white; display:flex; align-items:center; gap:10px }
.identity img,.conversation header img { width:44px; height:44px; object-fit:cover; object-position:48% 28%; border-radius:50%; border:2px solid #fff; outline:2px solid #f34b9d }
.identity strong { font-size:18px; letter-spacing:.01em; text-shadow:0 1px 6px #172639 }
.identity>div span,.conversation small { display:block; margin-top:2px; font-size:11px }
.follow { margin-left:auto; min-width:62px; min-height:33px; padding:0 9px; border:1px solid #ffffff96; border-radius:99px; color:white; background:#15233786; font-size:12px; font-weight:650 }
.invitation { flex:none; padding:18px 18px 15px }
.invitation h1 { margin:0 0 11px; font-size:clamp(20px,5.8cqw,27px); line-height:1.2; letter-spacing:-.025em }
.photos { display:grid; grid-template-columns:1fr 1fr; gap:10px }
.choice { position:relative; height:clamp(100px,17cqh,164px); overflow:hidden; border-radius:12px; text-align:left; background:#172a3f }
.choice img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.warm img { object-position:50% 16% }
.night img { object-position:50% 21% }
.choice>span { position:absolute; inset:auto 0 0; display:flex; justify-content:space-between; align-items:center; padding:23px 10px 9px; color:white; background:linear-gradient(transparent,#131827de); font-size:13px }
.choice [data-glyph] { width:15px; height:15px }
.compose { margin-top:12px; min-height:41px; border:1px solid #c9d6e0; border-radius:24px; background:#f3f7fa; display:flex; align-items:center; padding:3px 5px 3px 14px }
.compose input { flex:1; width:0; min-width:0; height:32px; border:0; background:transparent; font-size:14px }
.compose button { border-radius:50%; background:#dfeaf1; color:#215168; width:32px; height:32px; display:grid; place-items:center }
.compose:has(input:valid) button { color:white; background:#087da6 }
.pager { flex:none; color:#526b7b; display:flex; align-items:center; justify-content:space-between; padding:0 14px 0 19px; height:32px; background:#fafcfd; border-top:1px solid #dae6eb; font-size:11px }
.pager>div { display:flex }
.pager button { display:grid; place-items:center; width:40px; height:30px; color:#25566e }
.pager button:disabled { opacity:.27 }
.pager [data-glyph] { width:14px; height:14px }
.bottom-nav { box-sizing:content-box }
.bottom-nav .nav-play-mark { fill:#fa2a48; stroke:#fa2a48 }
.conversation { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; background:#f6f9fc }
.conversation header { min-height:64px; display:flex; gap:13px; align-items:center; padding:5px 18px 5px 9px; border-bottom:1px solid #dae5eb; background:white }
.conversation header button { width:36px; height:42px; display:grid; place-items:center }
.conversation header img { width:36px; height:36px }
.conversation small { color:#4e687a }
.affinity { margin-left:auto; display:flex; align-items:center; gap:6px; padding:5px 10px; border-radius:11px; background:#fff0f7; color:#a52567 }
.affinity>span:first-child {font-size:24px; color:#ea3b8a}
.conversation .affinity small {margin:0;font-size:9px;color:#8a4665}
.affinity b {font-size:12px}
.messages { min-height:0; flex:1; overflow:auto; padding:18px; display:flex; flex-direction:column; gap:12px }
.bubble { margin:0; padding:10px 13px; border-radius:14px; max-width:83%; align-self:flex-start; background:white; border:1px solid #dce6ec; font-size:15px; line-height:1.4; overflow-wrap:anywhere }
.bubble.mine { align-self:flex-end; background:#e6f3f9; border-color:#c8e1ed }
.sample-note { margin:0; align-self:center; font-size:12px; color:#6b7c87 } /* 5c：本地示例对话的说明 */
.bubble img { display:block; width:auto; max-width:100%; height:min(29cqh,215px); object-fit:contain; border-radius:9px; margin:0 auto 5px }
.conversation .compose { margin:6px 13px max(13px,env(safe-area-inset-bottom)); background:white }
@media(prefers-reduced-motion:no-preference) {
.role.moving .choice {animation:show-choice .42s ease-out backwards}
.role.moving .choice:nth-child(2) {animation-delay:.11s}
}
@keyframes show-choice {from {opacity:.72; transform:translateY(7px)} to {opacity:1; transform:translateY(0)}}
@media(prefers-reduced-motion:reduce) { .shot {transition:none;transform:none} }
@container(max-height:670px) {
.brandbar{height:43px}.brandbar img{height:28px;width:111px}.invitation{padding:10px 14px}.invitation h1{font-size:19px;margin-bottom:7px}.choice{height:82px}.compose{margin-top:7px}.topline{top:9px;left:12px;right:12px}.drama-info{bottom:12px;left:15px;right:15px}.subtitle{margin:5px 0 12px}.pager{height:28px}.bottom-nav{box-sizing:border-box}.hero .identity{bottom:9px}.follow{min-height:28px}
}
