*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;color:#292a2f}body{background:linear-gradient(130deg,#eee9e0,#cbc7bf)}button,textarea{font:inherit}.stage{min-height:100vh;display:grid;place-items:center;padding:28px}.phone{width:min(480px,100%);height:min(860px,calc(100vh - 36px));min-height:620px;background:#f5f5f2;border:1px solid #c9c6bf;border-radius:34px;box-shadow:0 30px 80px #38332b38;overflow:hidden;display:grid;grid-template-rows:auto 1fr auto;position:relative}.phone:before{content:"";position:absolute;top:9px;left:50%;width:82px;height:5px;border-radius:5px;background:#222;transform:translateX(-50%)}header{padding:23px 18px 10px;display:grid;grid-template-columns:40px 1fr 40px;align-items:center;border-bottom:1px solid #e5e3de;background:#fafaf8}h1{font-size:17px;text-align:center;margin:0}h1 span{color:#777;font-weight:500}header p{text-align:center;color:#79a088;font-size:11px;margin:3px 0 0}.plain{border:0;background:none;color:#292a2f;font-size:27px;padding:0}.dots{font-size:15px}.messages{overflow:auto;padding:16px 16px 28px;background:linear-gradient(#f5f5f2ed,#f5f5f2ed),repeating-linear-gradient(45deg,#e7e5de 0,#e7e5de 1px,transparent 1px,transparent 10px)}.time{text-align:center;color:#aaa;font-size:10px;margin-bottom:10px}.system{width:max-content;max-width:80%;margin:0 auto 16px;background:#deded9;color:#888;padding:4px 10px;border-radius:7px;font-size:11px}.row{display:flex;gap:9px;margin-bottom:16px;align-items:flex-start;animation:arrive .2s ease}.row.mine{flex-direction:row-reverse}.avatar{width:38px;height:38px;flex:0 0 38px;border-radius:10px;color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px}.body{max-width:76%}.mine .body{display:flex;flex-direction:column;align-items:flex-end}.name{color:#999;font-size:10px;margin:0 0 4px 2px}.bubble{background:#fff;border:1px solid #e3e2dd;border-radius:4px 13px 13px 13px;padding:10px 12px;font-size:14px;line-height:1.55;box-shadow:0 2px 4px #00000008;white-space:pre-wrap}.mine .bubble{background:#b7e78f;border-color:#a8d980;border-radius:13px 4px 13px 13px}.receipt{font-size:9px;color:#a5a5a2;margin:4px 0 0 3px;line-height:1}.row.unread .receipt{color:#d05645;font-weight:700}.row.unread .bubble{box-shadow:0 0 0 1px #edb5a9,0 2px 4px #00000008}.unread-jump{position:absolute;z-index:4;right:14px;bottom:78px;border:1px solid #deded8;border-radius:18px;background:#fff;color:#4a4b4f;box-shadow:0 4px 14px #00000024;padding:7px 11px 7px 8px;display:flex;align-items:center;gap:5px;font-size:11px;cursor:pointer}.unread-jump[hidden]{display:none}.unread-jump span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#f05d4e;color:#fff;font-size:14px;font-weight:700}.unread-jump b{font-weight:600}.typing{color:#888;font-size:11px;margin:0 0 13px 48px}.error{background:#fff0ec;color:#a84932;border:1px solid #f0c9bd;margin:10px auto;padding:8px 10px;border-radius:10px;font-size:11px;max-width:90%}.composer{display:grid;grid-template-columns:32px 1fr auto;gap:8px;padding:10px 11px 14px;border-top:1px solid #e5e3de;background:#f7f7f5;align-items:end}.composer textarea{min-width:0;max-height:100px;resize:none;border:1px solid #d9d7d2;border-radius:10px;padding:10px;outline:none;line-height:1.35}.composer textarea:focus{border-color:#78a184}.send{border:0;background:#6f9f7a;color:#fff;border-radius:9px;padding:10px 13px}.send:disabled{opacity:.45}.plus{height:36px;border:1px solid #aaa;border-radius:50%;background:none;color:#777}@keyframes arrive{from{opacity:0;transform:translateY(7px)}}@media(max-width:600px){body{background:#f5f5f2}.stage{display:block;padding:0}.phone{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}.phone:before{display:none}header{padding:max(12px,calc(env(safe-area-inset-top,0px) + 4px)) calc(18px + min(env(safe-area-inset-top,0px),1px)*74) 10px max(18px,env(safe-area-inset-left,0px))}.composer{padding-bottom:max(14px,env(safe-area-inset-bottom,0px))}.unread-jump{bottom:calc(64px + max(14px,env(safe-area-inset-bottom,0px)))}}
