* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    position: relative;
}

/* ==================== 底部导航 ==================== */
.tab-bar {
    background: #fff;
    display: flex;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 20;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.15s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
    color: #007aff;
}

.tab-item .tab-icon {
    font-size: 24px;
    margin-bottom: 2px;
    position: relative;
}

.tab-item .tab-label {
    font-size: 11px;
    font-weight: 500;
}

.tab-item .tab-badge {
    position: absolute;
    top: -6px;
    right: -14px;
    background: #ff3b30;
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0 4px;
}

/* ==================== 页面容器 ==================== */
.screen {
    flex: 1;
    overflow-y: auto;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.screen.d-none {
    display: none;
}

/* ==================== 导航栏 ==================== */
.nav-bar {
    background: #fff;
    padding: 12px 16px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-bar .back-btn {
    color: #007aff;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}

.nav-bar .title {
    font-weight: 600;
    font-size: 17px;
    color: #1a1a1a;
}

.nav-bar .action-btn {
    color: #007aff;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}

.nav-bar .placeholder {
    width: 50px;
}

/* ==================== Tab 切换 ==================== */
.tab-header {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 9;
}

.tab-header .tab-header-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: color 0.15s;
}

.tab-header .tab-header-item.active {
    color: #007aff;
    font-weight: 600;
}

.tab-header .tab-header-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #007aff;
    border-radius: 2px;
}

.tab-header .tab-header-badge {
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0 5px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ==================== 好友列表 ==================== */
.friend-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.friend-item:active {
    background: #f0f0f0;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
}

.avatar.blue {
    background: #007aff;
}
.avatar.green {
    background: #34c759;
}
.avatar.orange {
    background: #ff9500;
}
.avatar.purple {
    background: #af52de;
}
.avatar.red {
    background: #ff3b30;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.friend-preview {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.badge {
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0 6px;
    margin-left: 8px;
}

.time-label {
    font-size: 11px;
    color: #bbb;
    position: absolute;
    right: 16px;
    top: 16px;
}

/* 申请项的操作按钮 */
.request-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}

.btn-accept {
    background: #007aff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.btn-accept:active {
    background: #0056cc;
}

.btn-reject {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.btn-reject:active {
    background: #ddd;
}

/* ==================== 聊天区域 ==================== */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
    background: #f5f5f5;
}

.msg-row {
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-row.me {
    align-items: flex-end;
}

.msg-row.other {
    align-items: flex-start;
}

.bubble-wrapper {
    max-width: 78%;
    position: relative;
}

.bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.msg-row.me .bubble {
    background: #007aff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg-row.other .bubble {
    background: #e9e9eb;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

.read-status {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    text-align: right;
    padding-right: 4px;
}

.image-bubble {
    padding: 4px;
    background: #e9e9eb;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border-bottom-left-radius: 4px;
    display: inline-block;
}

.image-bubble img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.msg-row.me .image-bubble {
    background: #007aff;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 14px;
}

/* 自焚消息样式 */
.msg-row.me .bubble.fire-bubble {
    border: 2px solid #ff9500;
    background: #fff8f0 !important;
    color: #1a1a1a !important;
}

.msg-row.other .bubble.fire-bubble {
    border: 2px solid #ff9500;
    background: #fff8f0 !important;
    color: #1a1a1a !important;
}

.fire-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ff9500;
    font-weight: 600;
    margin-bottom: 6px;
}

.fire-countdown {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #ff9500;
    font-weight: 600;
    animation: pulse 1s ease-in-out infinite;
    margin-top: 4px;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.separator {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 8px 0;
    letter-spacing: 1px;
}

.separator::before,
.separator::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #ddd;
    vertical-align: middle;
    margin: 0 8px;
}

/* ==================== 输入栏（简化版） ==================== */
.input-bar {
    background: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    z-index: 10;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 6px));
}

.input-bar .btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    color: #333;
}

.input-bar .btn-icon:active {
    background: #ddd;
}

.input-bar input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
    background: #f9f9f9;
    min-width: 0;
}

.input-bar input:focus {
    border-color: #007aff;
    background: #fff;
}

/* ==================== 登录页 ==================== */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 30px;
    background: #f5f5f5;
    flex: 1;
}

.login-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 14px;
    outline: none;
    background: #fff;
}

.login-input:focus {
    border-color: #007aff;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.login-btn:active {
    background: #0056cc;
}

.login-switch {
    margin-top: 16px;
    color: #007aff;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ==================== "我的"页面 ==================== */
.profile-container {
    flex: 1;
    background: #f5f5f5;
    overflow-y: auto;
}

.profile-header {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #007aff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    margin: 0 auto 12px;
}

.profile-nickname {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.profile-username {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #1a1a1a;
}

.profile-item:active {
    background: #f0f0f0;
}

.profile-item .profile-item-icon {
    margin-right: 12px;
    font-size: 18px;
}

.profile-item .profile-item-arrow {
    margin-left: auto;
    color: #ccc;
}

/* ==================== Toast 轻提示 ==================== */
.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    gap: 8px;
}

.toast {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: auto;
    animation: toastIn 0.3s ease-out;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.success {
    background: rgba(52, 199, 89, 0.9);
}

.toast.error {
    background: rgba(255, 59, 48, 0.9);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ==================== 模态弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-sheet {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 0;
    animation: slideUp 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-sheet .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-sheet .modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-sheet .modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.modal-sheet .modal-body {
    padding: 20px;
}

.modal-sheet .search-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: #f9f9f9;
}

.modal-sheet .search-input:focus {
    border-color: #007aff;
    background: #fff;
}

.modal-sheet .btn-primary {
    width: 100%;
    padding: 14px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.modal-sheet .btn-primary:active {
    background: #0056cc;
}

/* ==================== 图片大图 ==================== */
.image-full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-full-overlay img {
    max-width: 95%;
    max-height: 85%;
    border-radius: 8px;
    object-fit: contain;
}

/* ==================== 全屏锁屏 ==================== */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    padding-top: 80px;
}

.lock-overlay .lock-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.lock-overlay h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 600;
}

.lock-overlay .lock-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.lock-overlay input {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin-bottom: 16px;
}

.lock-overlay input:focus {
    border-color: #007aff;
}

.lock-overlay button {
    padding: 12px 40px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.lock-overlay button:active {
    background: #0056cc;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.empty-state .empty-text {
    font-size: 15px;
}

.empty-state .empty-sub {
    font-size: 13px;
    margin-top: 8px;
    color: #bbb;
}

/* ==================== 通用 ==================== */
.d-none {
    display: none !important;
}

.screen::-webkit-scrollbar,
.chat-area::-webkit-scrollbar,
.friend-list::-webkit-scrollbar {
    width: 0;
}

/* 文字按钮 */
.btn-icon-text {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    color: #333;
}
.btn-icon-text:active {
    background: #ddd;
}

/* 发送按钮 */
.btn-send {
    height: 36px;
    padding: 0 16px;
    border: none;
    background: #007aff;
    color: #fff;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    white-space: nowrap;
}
.btn-send:active {
    background: #0056cc;
}

.burn-countdown {
    font-size: 10px;
    color: #ff9500;
    margin-top: 2px;
    text-align: right;
    padding-right: 4px;
}

/* ==================== 锁屏伪装：计算器 ==================== */
.lock-calc { background: #1c1c1e; color: #fff; padding: 0; height: 100%; display: flex; flex-direction: column; }
.calc-display { font-size: 56px; text-align: right; padding: 30px 20px 10px; flex: 1; font-weight: 300; letter-spacing: 2px; word-break: break-all; display: flex; align-items: flex-end; justify-content: flex-end; }
.calc-keys { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 10px; padding-bottom: 30px; flex-shrink: 0; }
.calc-key { background: #333; border-radius: 50%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 30px; cursor: pointer; user-select: none; width: auto; height: auto; margin: 0; }
.calc-key:active { background: #555; transform: scale(0.95); }
.calc-key.gray { background: #a5a5a5; color: #000; }
.calc-key.gray:active { background: #ccc; }
.calc-key.op { background: #ff9500; color: #fff; }
.calc-key.op:active { background: #ffb340; }
.calc-key.wide { border-radius: 40px; grid-column: span 2; aspect-ratio: auto; }
.calc-hint { text-align: center; color: #555; font-size: 10px; padding-bottom: 15px; letter-spacing: 1px; flex-shrink: 0; }

/* ==================== 锁屏伪装：天气预报 ==================== */
.lock-weather { background: linear-gradient(180deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%); color: #fff; padding-top: 40px; height: 100%; overflow-y: auto; }
.lock-weather .w-header { text-align: center; padding: 10px; }
.lock-weather .w-city { font-size: 22px; font-weight: 300; }
.lock-weather .w-temp { text-align: center; font-size: 80px; font-weight: 200; line-height: 1; margin: 10px 0; }
.lock-weather .w-desc { text-align: center; font-size: 18px; opacity: 0.8; }
.lock-weather .w-hilo { text-align: center; font-size: 14px; opacity: 0.6; margin-bottom: 15px; }
.lock-weather .w-detail { display: flex; justify-content: space-around; padding: 15px 20px; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); margin: 0 15px; }
.lock-weather .w-detail div { text-align: center; }
.lock-weather .w-detail span { font-size: 15px; display: block; }
.lock-weather .w-detail small { font-size: 10px; opacity: 0.5; }
.lock-weather .w-forecast { display: flex; justify-content: space-around; padding: 15px; margin: 0 10px; }
.lock-weather .w-forecast div { text-align: center; }
.lock-weather .w-forecast span { font-size: 22px; display: block; margin: 5px 0; }
.lock-weather .w-forecast small { font-size: 11px; opacity: 0.6; }
.lock-weather .w-search { margin: 15px 30px; text-align: center; }
.lock-weather .w-search input { width: 100%; max-width: 280px; padding: 12px 20px; border-radius: 25px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; outline: none; text-align: center; }
.lock-weather .w-search input::placeholder { color: rgba(255,255,255,0.3); }
.lock-weather .w-search button { margin-top: 10px; padding: 8px 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; font-size: 13px; cursor: pointer; }

/* ==================== 锁屏伪装：快递查询 ==================== */
.lock-express { background: #f5f6fa; padding-top: 30px; height: 100%; overflow-y: auto; }
.lock-express .e-top { text-align: center; font-size: 17px; font-weight: 600; color: #222; padding: 12px; }
.lock-express .e-card { margin: 15px; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.lock-express .e-company { font-size: 12px; color: #999; margin-bottom: 10px; }
.lock-express .e-title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 15px; }
.lock-express .e-track { list-style: none; }
.lock-express .e-item { display: flex; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; color: #666; position: relative; }
.lock-express .e-item small { margin-left: auto; opacity: 0.5; font-size: 11px; }
.lock-express .e-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; margin: 3px 10px 0 0; flex-shrink: 0; }
.lock-express .e-item.latest .e-dot { background: #007aff; }
.lock-express .e-item.latest { color: #007aff; font-weight: 500; }
.lock-express .e-input { margin: 15px; text-align: center; }
.lock-express .e-input input { width: 85%; max-width: 350px; padding: 14px 20px; border-radius: 25px; border: 2px solid #e0e0e0; font-size: 16px; outline: none; text-align: center; letter-spacing: 2px; background: #fff; }
.lock-express .e-input input:focus { border-color: #007aff; }
.lock-express .e-input button { margin-top: 12px; padding: 10px 40px; border-radius: 25px; background: #007aff; color: #fff; border: none; font-size: 15px; font-weight: 500; cursor: pointer; }
.lock-express .e-brand { text-align: center; color: #ccc; font-size: 11px; margin-top: 20px; }

.lock-slide-in {
    animation: lockSlideUp 0.3s ease-out;
}
@keyframes lockSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.lock-zoom-out {
    animation: lockZoomOut 0.25s ease-in forwards;
}
@keyframes lockZoomOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.3); opacity: 0; }
}

/* ==================== 语音消息 ==================== */
.voice-bubble { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 16px; min-width: 90px; }
.voice-icon { font-size: 22px; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 30px; flex: 1; }
.voice-wave.playing span { animation: voiceWave 0.8s ease-in-out infinite; }
.voice-wave span { width: 3px; border-radius: 2px; animation: none; }
.me .voice-wave span { background: #fff; }
.other .voice-wave span { background: #999; }
.voice-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 26px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 24px; animation-delay: 0.4s; }
.voice-wave span:nth-child(6) { height: 12px; animation-delay: 0.5s; }
.voice-wave span:nth-child(7) { height: 20px; animation-delay: 0.6s; }
@keyframes voiceWave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.3); } }
.voice-dur { font-size: 12px; opacity: 0.7; flex-shrink: 0; }

/* 录音按钮 */
.voice-btn { transition: 0.2s; }
.voice-btn.recording { background: #ff3b30 !important; color: #fff; animation: btnPulse 0.8s infinite; }
@keyframes btnPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* 录音提示 */
.record-toast { position: fixed; top: 40%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 20px 30px; border-radius: 16px; text-align: center; z-index: 999; display: none; pointer-events: none; }
.record-toast.show { display: block; }
.record-toast .mic-icon { font-size: 40px; animation: btnPulse 0.5s infinite; }
.record-toast .hint { font-size: 13px; opacity: 0.7; margin-top: 8px; }