/* QQ App Styles - Minimalist Cute Black & White */
:root {
    --qq-bg: #f7f7f7;
    --qq-header-bg: #ffffff;
    --qq-text: #333333;
    --qq-bubble-me: #333333;
    --qq-bubble-me-text: #ffffff;
    --qq-bubble-other: #ffffff;
    --qq-bubble-other-text: #333333;
    --qq-accent: #333333;
    --qq-border: #eeeeee;
}

.app-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--qq-bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding-top: 44px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}


/* Header */
.qq-header {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background: var(--qq-header-bg);
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.qq-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 1px solid #eee;
}

.qq-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--qq-text);
}

.qq-header-actions .icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    font-size: 18px;
    background: transparent;
    cursor: pointer;
    color: var(--qq-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Area */
.qq-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--qq-bg);
    min-height: 0;
}


.qq-tab-page {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    padding: 0;
}


.qq-tab-page.active {
    display: block;
}

/* Search Bar */
.qq-search-bar {
    background-color: #fff;
    margin: 10px 15px;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.qq-search-bar i {
    color: #999;
    font-size: 14px;
}

.qq-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--qq-text);
}

/* Lists (Chat & Contact) */
.chat-list, #contactList, #groupList {
    padding-bottom: 20px;
}

.chat-item, .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    /* border-bottom: 1px solid #f9f9f9; */
    cursor: pointer;
    transition: background 0.2s;
}

.chat-item:active, .contact-item:active {
    background-color: #f5f5f5;
}

.chat-avatar, .contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px; /* Rounded square for modern look */
    background-color: #eee;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.add-icon {
    background-color: #f0f0f0;
    color: #666;
    font-size: 20px;
}

.chat-info, .contact-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.chat-name, .contact-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--qq-text);
}

.chat-time {
    font-size: 11px;
    color: #999;
}

.chat-msg {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-title, .contact-group-title {
    font-size: 12px;
    color: #999;
    padding: 15px 15px 5px;
    font-weight: bold;
    background: transparent;
}

/* Moments (朋友圈) */
.moments-header {
    position: relative;
    margin-bottom: 60px;
    background: #fff;
}

.moments-bg {
    height: 240px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
}

.moments-bg-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.moments-user {
    position: absolute;
    bottom: -40px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.moments-user span {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    font-size: 18px;
}

.moments-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid #fff;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.moments-actions {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid #f9f9f9;
}

.moments-actions button {
    background: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.moments-actions button:active {
    transform: scale(0.9);
}

.moments-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
    background: #fff;
}

.moment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.moment-content {
    flex: 1;
}

.moment-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 16px;
}

.moment-text {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.moment-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 5px;
    margin-bottom: 10px;
}

.moment-images img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
}

.moment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.moment-time {
    font-size: 12px;
    color: #999;
}

.moment-actions {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    display: flex;
    gap: 20px;
}

.moment-actions i {
    cursor: pointer;
}

.moment-comments {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 10px;
    margin-top: 12px;
    font-size: 13px;
    color: #333;
}

.moment-likes {
    color: #576b95;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-weight: 500;
}

.moment-comment {
    margin-bottom: 4px;
    line-height: 1.5;
}

.moment-comment b {
    color: #576b95;
    font-weight: 500;
}

/* Me Page */
.me-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background: #fff;
    margin-bottom: 10px;
}

.me-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.me-info h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.me-info p {
    color: #999;
    font-size: 14px;
}

.me-menu {
    background: #fff;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
}

.menu-item:active {
    background: #f5f5f5;
}

.menu-item i {
    width: 30px;
    font-size: 20px;
    color: #333;
}

.menu-item span {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.menu-arrow {
    color: #ccc;
    font-size: 14px;
}

/* Tab Bar */
.qq-tab-bar {
    height: 55px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    padding-bottom: 5px;
}

.qq-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ccc;
    cursor: pointer;
    flex: 1;
}

.qq-tab-item.active {
    color: #333;
}

.qq-tab-item i {
    font-size: 22px;
}

.qq-tab-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Chat Window - The Important Part */
#chatWindow {
    background: #f2f2f2; /* Light gray background for chat */
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-status {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f2f2f2;
}

.message-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 100%;
}

.message-row.self {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px; /* Rounded square */
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.msg-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msg-name {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
    margin-bottom: 2px;
}

.message-row.self .msg-name {
    text-align: right;
    margin-right: 4px;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Other's Bubble (Left) */
.message-row:not(.self) .msg-bubble {
    background-color: var(--qq-bubble-other);
    color: var(--qq-bubble-other-text);
    border-top-left-radius: 4px;
}

/* My Bubble (Right) */
.message-row.self .msg-bubble {
    background-color: var(--qq-bubble-me);
    color: var(--qq-bubble-me-text);
    border-top-right-radius: 4px;
}

.msg-bubble img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.msg-bubble.image {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.msg-system {
    align-self: center;
    background-color: #e0e0e0;
    color: #888;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 15px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 5px;
}

.msg-system::before {
    content: '\f05a'; /* Info icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    opacity: 0.7;
}

/* Red Packet & Transfer Styles */
.msg-redpacket, .msg-transfer, .msg-card {
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.1s;
}

.msg-redpacket:active, .msg-transfer:active, .msg-card:active {
    transform: scale(0.98);
}

.msg-redpacket {
    background: #ff5e5e;
    color: #fff;
    border: none;
}

.msg-transfer {
    background: #ff9f43;
    color: #fff;
    border: none;
}

.rp-icon, .tf-icon, .card-icon {
    font-size: 24px;
    background: rgba(255,255,255,0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.card-icon {
    background: #f5f5f5;
    color: #333;
}

.rp-text, .tf-text, .card-text {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

/* Voice Bubble */
.msg-voice {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 80px;
}

.voice-icon {
    font-size: 16px;
}

.voice-duration {
    font-size: 12px;
    opacity: 0.8;
}

/* Chat Input Area */
.chat-input-area {
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 5px 0;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    outline: none;
    background: #f9f9f9;
    font-size: 15px;
    transition: border 0.2s;
}

.chat-input-area input:focus {
    border-color: #ccc;
    background: #fff;
}

.chat-tool-btn {
    background: none;
    border: 1.5px solid #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #333;
    font-size: 14px;
    transition: transform 0.1s;
}

.chat-tool-btn:active {
    transform: scale(0.9);
}

.chat-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #333;
    background: #fff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.1s;
}

.chat-circle-btn:active {
    transform: scale(0.9);
    background: #f5f5f5;
}

.chat-circle-btn.send {
    background: #333;
    color: #fff;
    border: none;
}

.chat-circle-btn.reply {
    font-size: 14px;
}

/* Chat Tools Panel (Grid) */
.chat-tools-panel {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 15px;
    padding: 20px 10px;
    border-top: 1px solid #eee;
    background: #f7f7f7;
    max-height: 300px;
    overflow-y: auto;
}

.chat-tools-panel.active {
    display: grid;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.tool-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background-color: #fff;
    border: 1.5px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333;
    transition: transform 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tool-icon:active {
    transform: scale(0.95);
    background: #f0f0f0;
}

.tool-name {
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* Wallet */
.wallet-card {
    background-color: #333;
    color: #fff;
    margin: 20px;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.wallet-card h1 {
    font-size: 40px;
    margin: 15px 0;
    font-weight: bold;
}

.small-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

.wallet-history {
    padding: 0 20px;
}

.wallet-history h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.wallet-history ul {
    list-style: none;
}

.wallet-history li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

/* Presets */
.preset-item {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Typing Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 5px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

/* Video Call UI */
.video-call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 300;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.vc-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.vc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vc-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.vc-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.vc-status {
    font-size: 14px;
    opacity: 0.8;
}

.vc-controls {
    padding: 50px 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.vc-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.1s;
}

.vc-btn:active {
    transform: scale(0.9);
}

.vc-btn.hangup {
    background: #ff3b30;
    color: #fff;
    width: 70px;
    height: 70px;
}

.vc-btn.mute {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.vc-chat-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.vc-msg {
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    font-size: 14px;
}

.vc-input-area {
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.5);
}

.vc-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
}

/* Recording UI */
.recording-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease;
}

.recording-wave {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.wave-bar {
    width: 5px;
    background: #333;
    border-radius: 5px;
    animation: wave 0.5s infinite ease-in-out;
}

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 40px; }
}

.recording-timer {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.recording-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ff4d4f;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 77, 79, 0.3);
}

/* Float Window (Novel/Music) */
.float-window {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    backdrop-filter: blur(10px);
    transition: height 0.3s;
}

.float-header {
    padding: 10px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.float-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.float-controls {
    display: flex;
    gap: 10px;
}

.float-controls i {
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.float-content {
    padding: 15px;
    overflow-y: auto;
    max-height: 300px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.novel-float {
    height: 300px;
}

.novel-float.minimized {
    height: 45px;
}

.music-float {
    height: auto;
}
/* ================== 增量补丁：黑白软萌 & 去状态栏 ================== */

/* 1. 强制去除顶部状态栏留白 */
.app-container {
    padding-top: 0 !important;
    height: 100vh !important;
}

/* 2. 头部适配 */
.qq-header {
    height: 60px; /* 稍微增高 */
    padding-top: 15px; /* 避开刘海屏 */
    background: #fff;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* 3. 全局黑白软萌化 */
:root {
    --qq-bg: #f7f7f7;
    --qq-bubble-me: #333;
    --qq-bubble-me-text: #fff;
    --qq-bubble-other: #fff;
    --qq-bubble-other-text: #333;
}

/* 圆角柔和化 */
.msg-bubble, .chat-avatar, .contact-avatar, .qq-avatar-small, .wallet-card {
    border-radius: 20px !important;
}
.chat-avatar, .contact-avatar {
    border-radius: 50% !important; /* 头像改圆形更可爱 */
}

/* 4. 视频通话全屏交互层 */
.video-call-modal {
    background: #000;
    z-index: 9999;
}
.vc-chat-area {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    height: 50% !important; /* 增加聊天区域高度 */
    pointer-events: auto; /* 允许点击 */
}
.vc-input-area {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding-bottom: 20px; /* 适配底部手势 */
}
.vc-input-area input {
    color: #333;
    background: #f2f2f2;
}
.vc-input-area button {
    color: #333;

}
/* ==========================================
   🎀 黑白软萌高级感增量补丁
   ==========================================
   放置位置：CSS文件最末尾
========================================== */

/* --- 1. 碎碎念样式 --- */
.murmur-item {
    margin-bottom: 15px;
}

.murmur-paper {
    background: #fff;
    padding: 15px 18px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 3px solid #333;
    font-size: 14px;
    line-height: 1.6;
}

.murmur-paper::before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 24px;
    color: #e0e0e0;
    font-family: Georgia, serif;
}

.murmur-content {
    padding-left: 15px;
    color: #333;
}

.murmur-time {
    font-size: 11px;
    color: #bbb;
    text-align: right;
    margin-top: 10px;
}

/* --- 2. 备忘录样式 --- */
.memo-item {
    margin-bottom: 15px;
}

.memo-sticky {
    background: #fafafa;
    padding: 15px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.memo-sticky.pink {
    background: #fdf6f8;
    border-color: #f5e0e5;
}

.memo-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}

.memo-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.memo-date {
    font-size: 11px;
    color: #bbb;
}

.memo-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 12px;
}

.memo-actions i {
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s;
}

.memo-actions i:active {
    color: #333;
}

/* --- 3. 状态卡片样式 --- */
.status-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.status-card {
    background: #fff;
    width: 280px;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.status-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
    border: 2px solid #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.status-card-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.status-card-content {
    text-align: left;
}

.sc-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.sc-item:last-child {
    border-bottom: none;
}

.sc-label {
    color: #aaa;
}

.sc-value {
    color: #333;
    font-weight: 500;
    max-width: 140px;
    text-align: right;
}

.status-card-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 22px;
}

.sc-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.sc-btn:active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* --- 4. 胶囊按钮 --- */
.capsule-btn {
    border-radius: 20px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #eee !important;
    background: #fafafa !important;
    color: #333 !important;
}

.capsule-btn:active {
    background: #f0f0f0 !important;
}

/* --- 5. 手机端增强 --- */
@media (max-width: 480px) {
    .msg-content { max-width: 78%; }

    .chat-tools-panel {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px 8px;
    }

    .tool-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
        border-radius: 14px;
    }

    .tool-name { font-size: 10px; }

    #emojiList {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6px !important;
    }

    .qq-tab-bar {
        padding-bottom: env(safe-area-inset-bottom, 5px);
    }

    .status-card { width: 85%; }
}

/* --- 6. 触摸微反馈 --- */
.chat-item:active,
.contact-item:active,
.tool-icon:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* ==========================================
   视频通话美化 - 黑白高级感
========================================== */
.video-call-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.vc-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.vc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 25px 20px;
    position: relative;
    z-index: 2;
}

.vc-header-left, .vc-header-right { width: 40px; }
.vc-header-center { text-align: center; }

.vc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-bottom: 100px;
}

.vc-avatar-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.vc-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.vc-pulse {
    position: absolute;
    top: -10px; left: -10px;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    animation: vcPulse 2s infinite;
}

@keyframes vcPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.vc-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.vc-status {
    font-size: 14px;
    opacity: 0.6;
    font-weight: 300;
}

.vc-chat-area {
    position: absolute;
    bottom: 200px; left: 0;
    width: 100%;
    max-height: 200px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.vc-msg {
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    animation: vcMsgIn 0.3s ease;
}

@keyframes vcMsgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vc-msg b {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    margin-right: 8px;
}

.vc-bottom {
    position: relative;
    z-index: 5;
    padding: 15px 20px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.vc-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.vc-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 12px 20px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.vc-input-area input:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.vc-input-area input::placeholder { color: rgba(255,255,255,0.4); }

.vc-input-area button {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s;
}

.vc-input-area button:active { transform: scale(0.95); }

.vc-controls {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.vc-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vc-btn-wrapper span {
    font-size: 11px;
    opacity: 0.6;
}

.vc-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.vc-btn.mute {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.vc-btn.mute:active {
    background: rgba(255,255,255,0.25);
}

.vc-btn.hangup {
    background: #ff3b30;
    color: #fff;
    width: 64px; height: 64px;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(255,59,48,0.4);
}

.vc-btn.hangup:active {
    transform: scale(0.95);
}

/* ==========================================
   记忆编辑器样式
========================================== */
.memory-item {
    background: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #f5f5f5;
}

.memory-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.memory-edit {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.memory-edit i {
    font-size: 11px;
    color: #999;
}

.memory-edit:active {
    background: #333;
}

.memory-edit:active i {
    color: #fff;
}
/* 表情包网格 - 5个一行 */
.emoji-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 15px;
    overflow-y: auto;
}

.emoji-item {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1.5px solid #f0f0f0;
    transition: transform 0.1s, box-shadow 0.1s;
}

.emoji-item:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.emoji-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emoji-meaning {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 10px;
    padding: 15px 4px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.2s;
}

.emoji-item:hover .emoji-meaning,
.emoji-item:active .emoji-meaning {
    opacity: 1;
}

.emoji-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.emoji-empty i {
    font-size: 48px;
    margin-bottom: 15px;
}

.emoji-empty p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #999;
}

.emoji-empty span {
    font-size: 12px;
}

/* 手机端适配 - 保持5个一行 */
@media (max-width: 480px) {
    .emoji-grid-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 10px;
    }

    .emoji-item {
        border-radius: 10px;
    }

    .emoji-meaning {
        font-size: 9px;
    }
}
/* 半屏表情包面板 */
.emoji-quick-panel {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    max-height: 280px;
    overflow: hidden;
    z-index: 100;
    animation: slideUp 0.25s ease;
}

.emoji-quick-panel.active {
    display: block;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.eqp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.eqp-manage-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #333;
    background: #fff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

.eqp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    max-height: 220px;
}

.eqp-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    transition: transform 0.1s;
}

.eqp-item:active {
    transform: scale(0.92);
}

.eqp-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eqp-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ccc;
    cursor: pointer;
    gap: 10px;
}

.eqp-empty i {
    font-size: 32px;
}

/* 上传类型切换tabs */
.upload-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.utt-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.utt-btn.active {
    border-color: #333;
    background: #333;
    color: #fff;
}

.upload-area {
    margin-bottom: 10px;
}

.upload-dropzone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #333;
    background: #fafafa;
}

.upload-dropzone i {
    font-size: 32px;
    color: #ccc;
}

.upload-hint {
    font-size: 11px;
    color: #bbb;
}

.upload-preview {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    border: 2px solid #eee;
    margin-top: 10px;
}

.url-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.url-input:focus {
    border-color: #333;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    color: #333;
}

.file-info i {
    font-size: 20px;
    color: #666;
}
/* 拉黑消息样式 */
.blocked-msg-item {
    margin-bottom: 15px;
}

.blocked-msg-bubble {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    border-left: 3px solid #ff4d4f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.blocked-msg-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.blocked-msg-time {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
}

.blocked-msg-hint {
    font-size: 10px;
    color: #ff4d4f;
    font-style: italic;
}
/* ==========================================
   消息行布局修复
========================================== */
.message-row {
    display: flex;
    gap: 10px;
    align-items: flex-start; /* 改为顶部对齐 */
    max-width: 100%;
}

.message-row.self {
    flex-direction: row-reverse;
}

/* 头像容器垂直居中对齐 */
.msg-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    min-width: 50px;
    padding-top: 0; /* 确保顶部无额外间距 */
}

/* 日期标签 */
.msg-date {
    font-size: 9px;
    color: #bbb;
    background: rgba(0,0,0,0.03);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 头像 */
.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* 时间标签 */
.msg-time {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* 消息内容容器 - 关键修复 */
.msg-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 18px; /* 向下偏移使气泡与头像中心对齐 */
}

/* 自己发送的消息 */
.message-row.self .msg-date {
    background: rgba(0,0,0,0.05);
    color: #aaa;
}

.message-row.self .msg-time {
    color: #aaa;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .msg-date {
        font-size: 8px;
        padding: 2px 6px;
    }

    .msg-time {
        font-size: 9px;
    }

    .msg-avatar {
        width: 38px;
        height: 38px;
    }

    .msg-content {
        max-width: 78%;
        padding-top: 16px; /* 手机端稍微调整 */
    }
}

/* ==========================================
   语音消息样式（点击展开版）
========================================== */
.voice-message-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.voice-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    min-width: 80px;
    position: relative;
    border-radius: 18px;
}

.voice-bubble.has-sound {
    cursor: pointer;
    transition: background 0.15s;
}

.voice-bubble.has-sound:active {
    opacity: 0.8;
}

.voice-bubble i:first-child {
    font-size: 14px;
}

.voice-duration {
    font-size: 13px;
    font-weight: 500;
}

.voice-play-icon {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 4px;
}

/* 转文字图标（小按钮） */
.voice-text-icon {
    font-size: 11px;
    opacity: 0.5;
    margin-left: auto;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.15s;
    cursor: pointer;
}

.voice-text-icon:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

.message-row.self .voice-text-icon:hover {
    background: rgba(255,255,255,0.2);
}

.voice-text-icon:active {
    transform: scale(0.9);
}

/* 转文字框（隐藏状态） */
.voice-transcription {
    background: rgba(0,0,0,0.04);
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    max-width: 100%;
    word-wrap: break-word;
    display: none; /* 默认隐藏 */
}

/* 自己发送的语音转文字 */
.message-row.self .voice-transcription {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 无声音的语音气泡 */
.voice-bubble.no-sound {
    opacity: 0.85;
    border: 1px dashed rgba(0,0,0,0.08);
}

.message-row.self .voice-bubble.no-sound {
    border-color: rgba(255,255,255,0.25);
}

/* 展开动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 手机端适配 */
@media (max-width: 480px) {
    .voice-text-icon {
        font-size: 10px;
        padding: 3px;
    }

    .voice-transcription {
        font-size: 13px;
        padding: 8px 12px;
    }
}
/* ==========================================
   双语翻译气泡样式
========================================== */
.text-message-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.msg-bubble.has-translation {
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* 为图标留空间 */
}

.translation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.msg-bubble.has-translation:hover .translation-icon {
    opacity: 0.8;
}

/* 翻译气泡 */
.translation-bubble {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-left: 3px solid #999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    animation: slideDown 0.2s ease;
}

.translation-bubble i {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    flex-shrink: 0;
}

.translation-bubble span {
    flex: 1;
    word-wrap: break-word;
}

/* 自己发送的翻译气泡 */
.message-row.self .translation-bubble {
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
    color: rgba(255,255,255,0.9);
    border-left-color: rgba(255,255,255,0.4);
}

.message-row.self .translation-bubble i {
    color: rgba(255,255,255,0.7);
}

/* 动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 点击提示效果 */
.msg-bubble.has-translation:active {
    transform: scale(0.98);
}

/* 手机端适配 */
@media (max-width: 480px) {
    .translation-bubble {
        font-size: 12px;
        padding: 8px 12px;
    }

    .translation-icon {
        font-size: 11px;
    }
}
/* ==========================================
   图片消息样式（文字图片 vs 真实图片）
========================================== */

/* 文字图片卡片 */
.text-image-wrapper {
    max-width: 100%;
}

.text-image-card {
    background: linear-gradient(135deg, #f8f8f8 0%, #ececec 100%);
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 180px;
    max-width: 240px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.text-image-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: #666;
    font-size: 18px;
}

.text-image-content {
    flex: 1;
    overflow: hidden;
}

.text-image-label {
    font-size: 10px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-image-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

/* 自己发送的文字图片 */
.message-row.self .text-image-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
    border-color: rgba(255,255,255,0.4);
}

.message-row.self .text-image-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.3) 100%);
    color: rgba(255,255,255,0.9);
}

.message-row.self .text-image-label {
    color: rgba(255,255,255,0.7);
}

.message-row.self .text-image-desc {
    color: rgba(255,255,255,0.95);
}

/* 真实图片包装 */
.real-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.image-caption {
    font-size: 11px;
    color: #999;
    padding: 0 4px;
    line-height: 1.4;
    font-style: italic;
}

.message-row.self .image-caption {
    color: rgba(255,255,255,0.7);
    text-align: right;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .text-image-card {
        min-width: 160px;
        max-width: 200px;
        padding: 12px;
    }

    .text-image-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .text-image-desc {
        font-size: 12px;
    }
}
/* ==========================================
   AI主动行为相关样式
========================================== */

/* 视频通话邀请卡片 */
.video-call-invite {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: transform 0.15s;
}

.video-call-invite:active {
    transform: scale(0.98);
}

.video-call-invite .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.video-call-invite .content {
    flex: 1;
}

.video-call-invite .title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.video-call-invite .subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* 关系邀请卡片 */
.relation-invite {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
}

.relation-invite .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.relation-invite .title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
}

.relation-invite .subtitle {
    font-size: 13px;
    opacity: 0.9;
}
/* ==========================================
   拖拽上传优化样式
========================================== */
.upload-dropzone.dragover {
    border-color: #333 !important;
    background: #f5f5f5 !important;
    transform: scale(1.02);
}

.upload-dropzone i.fa-check-circle {
    color: #52c41a;
    font-size: 36px;
}

.upload-hint {
    font-size: 11px;
    color: #bbb;
    margin-top: 8px;
    text-align: center;
}

/* URL输入框增强 */
.url-input {
    transition: all 0.2s;
}

.url-input:focus {
    border-color: #333 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* 文本输入框 */
#novelTextInput {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

#novelTextInput:focus {
    outline: none;
    border-color: #333;
}
/* ==========================================
   小说观看器进度条
========================================== */
.novel-progress-bar {
    padding: 10px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.progress-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-align: center;
}

.progress-bar-bg {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    transition: width 0.3s ease;
}

/* 小说章节内容 */
.novel-chapter {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    padding: 20px;
    text-align: justify;
}

/* 小说导航按钮 */
.novel-controls {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.novel-nav-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.novel-nav-btn:first-child {
    margin-right: 8px;
}

.novel-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.novel-nav-btn:not(:disabled):active {
    background: #f5f5f5;
    transform: scale(0.98);
}

/* 音乐播放器信息 */
.music-info {
    padding: 10px 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.music-time {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 悬浮窗最小化状态 */
.float-window.minimized {
    height: 50px !important;
}

.float-window.minimized .float-header {
    border-bottom: none;
}
/* 朋友圈频率设置说明 */
.moment-freq-hint {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.moment-freq-hint strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}
/* ==========================================
   偷看模式样式
========================================== */
.spectator-hint {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 10px 15px;
    border-radius: 12px;
    margin: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.spectator-hint i {
    font-size: 16px;
}

/* 禁用输入框样式 */
#chatInput:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
/* ==========================================
   偷看模式控制面板
========================================== */
.spectator-control-panel {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 12px 15px;
}

.spectator-hint {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #e65100;
    border: 1px solid #ffcc80;
    margin-bottom: 12px;
}

.spectator-hint i {
    font-size: 14px;
    flex-shrink: 0;
}

.spectator-buttons {
    display: flex;
    gap: 10px;
}

.spectator-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.spectator-btn i {
    font-size: 16px;
}

.spectator-btn.primary {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.spectator-btn.primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.spectator-btn.secondary {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #333;
    border: 1.5px solid #ddd;
}

.spectator-btn.secondary:active {
    transform: scale(0.98);
    background: #e0e0e0;
}

.spectator-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spectator-btn:disabled:active {
    transform: none;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .spectator-buttons {
        flex-direction: column;
    }

    .spectator-btn {
        width: 100%;
    }
}

/* ==========================================
   拉黑消息样式优化
========================================== */

.blocked-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffe0e0;
}

.blocked-msg-header i {
    font-size: 14px;
    color: #ff4d4f;
}

.blocked-msg-header span {
    font-size: 11px;
    color: #ff4d4f;
    font-weight: 600;
    text-transform: uppercase;
}
.blocked-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffe0e0;
}

.blocked-msg-header i {
    font-size: 14px;
    color: #ff4d4f;
}

.blocked-msg-header span {
    font-size: 11px;
    color: #ff4d4f;
    font-weight: 600;
    text-transform: uppercase;
}
/* 钱包翻页按钮 */
.wallet-nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s;
}

.wallet-nav-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.wallet-nav-btn:not(:disabled):hover {
    color: #12b7f5;
    transform: scale(1.1);
}

/* 小说/音乐浮窗进度条 */
.novel-progress-bar {
    padding: 10px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.progress-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #12b7f5, #5f9ea0);
    transition: width 0.3s ease;
}
/* ==========================================
   视频通话输入框优化
========================================== */
.vc-input-area {
    background: rgba(0, 0, 0, 0.3) !important; /* 半透明背景 */
    backdrop-filter: blur(10px) !important; /* 毛玻璃效果 */
    padding: 8px 15px !important;
    border-radius: 0 !important;
    position: absolute !important;
    bottom: 80px !important; /* 上移避免遮挡控制按钮 */
    left: 0;
    right: 0;
}

.vc-input-area input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

.vc-input-area input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.vc-input-area button {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #fff !important;
}

.vc-input-area button:active {
    background: rgba(255, 255, 255, 0.3) !important;
}
/* ==========================================
   视频通话输入框优化（优雅版）
========================================== */
.vc-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin: 0 20px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
}

.vc-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 10px 18px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.vc-input-area input:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.vc-input-area input::placeholder {
    color: rgba(255,255,255,0.5);
}

.vc-input-area button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

.vc-input-area button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 5px rgba(255,255,255,0.2);
}

/* 输入框动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* 输入按钮图标动画 */
#vcToggleInput i {
    transition: transform 0.2s;
}

#vcToggleInput:active i {
    transform: scale(1.1);
}
/* ==========================================
   @ 成员选择器样式
========================================== */
#memberSuggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
    max-height: 180px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid #f0f0f0;
}

#memberSuggestions > div {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

#memberSuggestions > div:active,
#memberSuggestions > div[style*="background:#f0f0f0"] {
    background: #f0f0f0 !important;
}

#memberSuggestions > div span {
    font-weight: 600;
    color: #576b95;
}
/* 文字图片卡片样式 - 完全重写 */
.text-image-card {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.text-image-card:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

.text-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ========== 角色钱包样式 ========== */
.char-wallet-header {
    padding: 20px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.char-wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    width: fit-content;
}

.char-wallet-status.disabled {
    background: rgba(255,255,255,0.1);
    opacity: 0.7;
}

.char-wallet-balance-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.balance-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 1px;
}

.balance-hint {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
}

.char-wallet-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    opacity: 0.8;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.char-wallet-history {
    padding: 15px;
}

.history-title {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.history-list {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

.char-wallet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
