/* Open Maopaoya — iOS 液态玻璃 */ :root { --glass: rgba(255,255,255,.08); --glass-strong: rgba(255,255,255,.14); --stroke: rgba(255,255,255,.22); --text: #f2f4ff; --dim: rgba(242,244,255,.55); --accent: #7c9aff; } * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html, body { height: 100%; margin: 0; } body { font-family: -apple-system, "SF Pro", "PingFang SC", sans-serif; background: #0d0e18; color: var(--text); overflow: hidden; } .bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; } .bg-blobs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s infinite alternate ease-in-out; } .bg-blobs i:nth-child(1) { width: 55vmax; height: 55vmax; left: -15vmax; top: -18vmax; background: radial-gradient(circle, #5b6bff, transparent 70%); } .bg-blobs i:nth-child(2) { width: 45vmax; height: 45vmax; right: -12vmax; top: 8vmax; background: radial-gradient(circle, #b45bff, transparent 70%); animation-delay: -8s; } .bg-blobs i:nth-child(3) { width: 50vmax; height: 50vmax; left: 10vmax; bottom: -20vmax; background: radial-gradient(circle, #ff6bb0, transparent 70%); animation-delay: -14s; } @keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } } /* —— 液态玻璃核心 —— */ .glass-card, .glass-nav, .glass-drawer, .glass-inputbar { background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7); border: 1px solid var(--stroke); box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.06); border-radius: 24px; } .glass-card { padding: 22px; } .center-card { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(400px, 92vw); display: flex; flex-direction: column; gap: 12px; z-index: 50; } .logo { margin: 0; font-size: 26px; } .sub { margin: 0; color: var(--dim); font-size: 13px; } input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.06); color: var(--text); font-size: 15px; outline: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } input:focus, textarea:focus { border-color: var(--accent); } textarea { min-height: 90px; resize: vertical; } .btn { padding: 11px 18px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass-strong); color: var(--text); font-size: 15px; cursor: pointer; transition: transform .15s, background .2s; } .btn:active { transform: scale(.96); } .btn.primary { background: linear-gradient(135deg, #6f86ff, #9a6bff); border: none; font-weight: 600; } .btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; } .btn.danger { border-color: rgba(255,110,110,.5); color: #ff9c9c; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.spread { justify-content: space-between; } .spacer { flex: 1; } .msg { color: #ff9c9c; font-size: 13px; min-height: 16px; margin: 0; } .hint { color: var(--dim); font-size: 13px; } .hidden { display: none !important; } /* 导航 */ .view { height: 100vh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); } .glass-nav { display: flex; gap: 6px; align-items: center; margin: 10px 12px; padding: 8px; border-radius: 20px; overflow-x: auto; flex-shrink: 0; } .nav-btn { padding: 9px 14px; border-radius: 12px; border: none; background: transparent; color: var(--dim); font-size: 14px; cursor: pointer; white-space: nowrap; } .nav-btn.active { background: var(--glass-strong); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); } .who { color: var(--dim); font-size: 13px; padding: 0 6px; } .page { flex: 1; overflow-y: auto; padding: 4px 16px 90px; } .page h2 { margin: 8px 0 14px; } .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; } .mini-card { padding: 16px; border-radius: 20px; cursor: pointer; position: relative; background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); transition: transform .15s; } .mini-card:active { transform: scale(.97); } .mini-card h4 { margin: 0 0 6px; font-size: 15px; } .mini-card p { margin: 0; font-size: 12px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .mini-card .avatar { width: 100%; border-radius: 14px; margin-bottom: 8px; } .tag { font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--glass-strong); color: var(--dim); } /* 聊天 */ #chat-log { flex: 1; overflow-y: auto; padding: 10px 14px 10px; display: flex; flex-direction: column; gap: 10px; } .bubble { max-width: 82%; padding: 12px 15px; border-radius: 20px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--stroke); position: relative; } .bubble.user { align-self: flex-end; background: linear-gradient(135deg, rgba(111,134,255,.35), rgba(154,107,255,.35)); border-bottom-right-radius: 6px; } .bubble.ai { align-self: flex-start; background: var(--glass); border-bottom-left-radius: 6px; } .bubble .speaker { font-size: 11px; color: var(--accent); margin-bottom: 4px; } .bubble .acts { position: absolute; top: -12px; right: 8px; display: none; gap: 4px; } .bubble:hover .acts, .bubble:active .acts { display: flex; } .acts button { font-size: 11px; padding: 4px 8px; border-radius: 9px; cursor: pointer; border: 1px solid var(--stroke); background: rgba(20,22,40,.9); color: var(--text); } .new-char-banner { align-self: center; font-size: 13px; color: #ffd479; background: rgba(255,212,121,.12); border: 1px solid rgba(255,212,121,.35); padding: 8px 16px; border-radius: 14px; } .glass-inputbar { display: flex; gap: 8px; margin: 0 12px calc(12px + env(safe-area-inset-bottom)); padding: 8px; flex-shrink: 0; } .glass-inputbar input { flex: 1; } /* 抽屉 */ .drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } .glass-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); z-index: 70; border-radius: 24px 0 0 24px; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s cubic-bezier(.3,.9,.3,1); } .glass-drawer.open { transform: translateX(0); } .mem-item { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); margin-bottom: 8px; font-size: 13px; } .mem-item .kind { font-size: 10px; color: var(--accent); text-transform: uppercase; } .mem-item .row { margin-top: 6px; } /* 弹窗 */ .modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(460px, 92vw); max-height: 86vh; overflow-y: auto; z-index: 80; } /* 引导 */ .guide-mask { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } /* toast */ .toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 14px; z-index: 100; background: rgba(30,32,60,.9); border: 1px solid var(--stroke); font-size: 14px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); } @media (max-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } .bubble { max-width: 90%; } } /* 扩展组件 */ .swipe-bar { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; } .swipe-bar button { padding: 2px 10px; } .acts { display: flex; gap: 4px; margin-top: 6px; opacity: .45; font-size: 12px; } .acts button { background: none; border: none; color: var(--text); cursor: pointer; padding: 2px; } .moment-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; } .tag { background: rgba(124,154,255,.18); border: 1px solid var(--stroke); padding: 1px 8px; border-radius: 8px; font-size: 11px; color: var(--accent); } .call-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(10,10,25,.75); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: flex; flex-direction: column; padding: calc(40px + env(safe-area-inset-top)) 16px 24px; } .call-info { display: flex; flex-direction: column; align-items: center; gap: 6px; } .call-info .dim { color: var(--dim); font-size: 13px; } .avatar.big { width: 84px; height: 84px; font-size: 40px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--stroke); display: flex; align-items: center; justify-content: center; overflow: hidden; } .avatar.big img { width: 100%; height: 100%; object-fit: cover; } #call-log { flex: 1; overflow-y: auto; margin: 16px 0; } .call-input input { flex: 1; } .new-char-banner { text-align: center; margin: 10px auto; padding: 8px 16px; border-radius: 14px; background: rgba(124,154,255,.16); border: 1px solid var(--stroke); font-size: 13px; max-width: 90%; } .speaker { font-size: 11px; color: var(--accent); margin-bottom: 2px; }