        body {
            font-family: 'Indie+Flower', cursive;
            background: linear-gradient(135deg, #1a1a1a, #4b3a5a);
            color: #e2e8f0;
            min-height: 100vh;
            position: relative;
        }
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cracked.png') repeat;
            opacity: 0.2;
            z-index: -1;
        }
        #messageList {
            position: relative;
    margin: 0 auto; /* 居中 */
    overflow-x: hidden; /* 防止水平溢出 */
        }
        .message-card {
            background: rgba(255, 255, 255, 0.05);
            border-image: url('https://www.transparenttextures.com/patterns/cracked.png') 30 stretch;
            border-radius: 8px;
            transition: transform 0.3s ease, box-shadow 0.3s ease, left 0.5s ease, top 0.5s ease;
            animation: fadeInUp 0.6s ease-out forwards;
            max-width: 300px;
            
            height: auto;
            overflow: hidden;
            margin-bottom: 1rem;
            position: absolute;
            width: 300px; /* 固定卡片宽度 */
            box-sizing: border-box;
            transform: translateY(0);
            will-change: transform, left, top;
        }
        .message-card.p-4 {
            margin: 0px;
        }
        .message-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }
        .message-card .text-content {
            margin-top: 0.6rem;
            max-height: 180px;
            overflow-y: auto;
            overflow-wrap: anywhere;
            word-break: break-all;
            padding-right: 0.25rem;
        }
        .message-card .text-content::-webkit-scrollbar {
            width: 6px;
        }
        .message-card .text-content::-webkit-scrollbar-track {
            background: transparent;
        }
        .message-card .text-content::-webkit-scrollbar-thumb {
            background-color: #FFB7C5;
            border-radius: 3px;
        }
        .message-card .image-grid {
            display: grid;
            grid-template-columns: repeat(3, 87px);
            row-gap: 0.25rem;
            column-gap: 0.25rem;
            justify-content: start;
            margin-top: 0.5rem;
        }
        .message-card .image-grid img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        .message-card .image-grid img:hover {
            transform: scale(1.1);
        }
        .audio-player {
            margin-top: 0.6rem;
            background: linear-gradient(to right, #2a2a2a, #3a2a4a);
            border-radius: 16px;
            padding: 6px  13px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 0.30rem;
            transition: box-shadow 0.3s ease;
        }
        .audio-player:hover {
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }
        .audio-player audio {
            display: none;
        }
        .play-pause-btn {
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, #FFB7C5, #FF9999);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.3s ease;
        }
        .play-pause-btn:hover {
            transform: scale(1.1);
            background: linear-gradient(135deg, #FF9999, #FFB7C5);
        }
        .play-pause-btn:active {
            transform: scale(0.95);
        }
        .play-pause-btn i {
            color: white;
            font-size: 1rem;
        }
        .progress-container {
            flex: 1;
            position: relative;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 100px;
            cursor: pointer;
        }
        .progress-bar {
            width: 0;
            height: 100%;
            background: linear-gradient(to right, #FFB7C5, #FF9999);
            border-radius: 3px;
            position: relative;
            transition: width 0.1s linear;
        }
        .progress-bar::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: #FFB7C5;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            display: none;
        }
        .progress-container:hover .progress-bar::after {
            display: block;
        }
        .time-display {
            font-size: 0.6rem;
            color: #e2e8f0;
            min-width: 60px;
            text-align: center;
        }
        .volume-container {
            position: relative;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        .volume-icon {
            color: #e2e8f0;
            cursor: pointer;
            transition: color 0.3s ease;
            position: relative;
        }
        .volume-icon:hover {
            color: #FFB7C5;
        }
        .volume-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 0;
            height: 0;
            opacity: 0;
            position: absolute;
            top: -80px;
            left: 50%;
            transform: translateX(-50%);
            transition: opacity 0.2s ease;
            writing-mode: vertical-lr;
            -webkit-appearance: slider-vertical;
        }
        .volume-slider.visible {
            width: 4px;
            height: 100px;
            opacity: 1;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            transform: translateX(-50%) rotate(180deg);
        }
        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 10px;
            height: 10px;
            background: #FFB7C5;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .volume-slider::-moz-range-thumb {
            width: 10px;
            height: 10px;
            background: #FFB7C5;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .volume-popup {
            position: absolute;
            top: -105px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 100px;
            background: linear-gradient(135deg, #2a2a2a, #3a2a4a);
            border-radius: 8px;
            padding: 0.5rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        .volume-popup.visible {
            display: flex;
        }
        .volume-slider-popup {
            -webkit-appearance: none;
            appearance: none;
            width: 4px;
            height: 80px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            writing-mode: vertical-lr;
            -webkit-appearance: slider-vertical;
            transform: rotate(180deg);
        }
        .volume-slider-popup::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 10px;
            height: 10px;
            background: #FFB7C5;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .volume-slider-popup::-moz-range-thumb {
            width: 10px;
            height: 10px;
            background: #FFB7C5;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            overflow: hidden;
        }
        .default-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
        }
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        .modal-content {
            position: relative;
            text-align: center;
            max-width: 90%;
            max-height: 90%;
        }
        .modal img {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 8px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .modal img.loaded {
            opacity: 1;
        }
        .modal .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            color: #FFB7C5;
            animation: spin 1s linear infinite;
        }
        .modal .error-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #ef4444;
            font-size: 1.2rem;
            background: rgba(255, 255, 255, 0.1);
            padding: 1rem;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        .modal .error-message:hover {
            transform: translate(-50%, -50%) scale(1.05);
        }
        .modal .nav-buttons {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2rem;
            color: #fff;
            cursor: pointer;
            padding: 0 1rem;
            transition: color 0.3s ease;
        }
        .modal .nav-buttons:hover {
            color: #FFB7C5;
        }
        .modal .prev {
            left: 0;
        }
        .modal .next {
            right: 0;
        }
        .modal .close-button {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: #fff;
            cursor: pointer;
            transition: color 0.3s ease, transform 0.3s ease;
        }
        .modal .close-button:hover {
            color: #FFB7C5;
            transform: scale(1.2);
        }
        .notification {
            position: fixed;
            top: 20px;
            right: -300px;
            background: linear-gradient(135deg, #FFB7C5, #FF9999);
            color: white;
            padding: 1rem;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            animation: slideInRight 0.5s ease-out forwards, slideOutRight 0.5s ease-out 2.5s forwards;
            z-index: 100;
            max-width: 300px;
            opacity: 0;
        }
        .notification.error {
            background: linear-gradient(135deg, #ef4444, #b91c1c);
        }
        .floating-add {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
            z-index: 1001;
            cursor: pointer;
        }
        .floating-add:hover {
            transform: scale(1.1);
        }
        .floating-add:active {
            transform: scale(0.95);
        }
        .sort-panel {
            position: fixed;
            bottom: 150px;
            right: 10px;
            width: 200px;
            background: linear-gradient(135deg, #1a1a1a, #2a2a3a);
            border: 2px solid #FFB7C5;
            border-radius: 12px;
            padding: 1rem;
            z-index: 1002;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .sort-panel.visible {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        .sort-panel button {
            width: 100%;
            margin-bottom: 0.5rem;
            padding: 0.5rem;
            font-size: 0.875rem;
            transition: transform 0.2s ease, background 0.2s ease;
        }
        .sort-panel button:last-child {
            margin-bottom: 0;
        }
        .sort-panel button:hover {
            transform: scale(1.03);
        }
        .sort-panel button:active {
            background: linear-gradient(135deg, #FF9999, #FFB7C5);
        }
        .sort-toggle {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #f97316, #ea580c);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
            z-index: 1001;
            cursor: pointer;
        }
        .sort-toggle:hover {
            transform: scale(1.1);
        }
        .sort-toggle:active {
            transform: scale(0.95);
        }
        .form-modal {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 320px;
            background: linear-gradient(135deg, #1a1a1a, #2a2a3a);
            border: 2px solid #FFB7C5;
            border-radius: 12px;
            padding: 1.5rem;
            z-index: 1002;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .form-modal.visible {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        .form-modal.closing {
            opacity: 0;
            transform: translateY(20px);
        }
        .comment-modal {
            background: linear-gradient(135deg, #1a1a1a, #2a2a3a);
            border: 2px solid #FFB7C5;
            border-radius: 12px;
            padding: 1.5rem;
            z-index: 1002;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .comment-modal.visible {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        textarea, input[type="text"], input[type="file"] {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid #FFB7C5;
            color: #e2e8f0;
            border-radius: 6px;
            transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
        }
        textarea:focus, input[type="text"]:focus, input[type="file"]:focus {
            border-color: #FF9999;
            background: rgba(255, 255, 255, 0.15);
            transform: scale(1.02);
            outline: none;
        }
        input[type="file"] {
            padding: 0.75rem;
        }
        .image-upload-container {
            position: relative;
        }
        .image-upload-container.loading::after {
            content: '正在压缩文件...';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #FFB7C5;
            font-size: 0.875rem;
            animation: pulse 1.5s infinite;
        }
        .image-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 100px));
            row-gap: 0.25rem;
            column-gap: 0.25rem;
            justify-content: center;
            margin-top: 0.5rem;
        }
        .image-preview-grid img, .image-preview-grid audio, .image-preview-grid video {
            width: 220px;
            height: 100px;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.3s ease;
            animation: scaleIn 0.4s ease-out forwards;
        }
        .image-preview-grid audio {
            background: #2a2a2a;
            border: none;
        }
        .image-preview-grid video {
            background: #000;
        }
        .image-preview-grid img:hover, .image-preview-grid audio:hover, .image-preview-grid video:hover {
            transform: scale(1.1);
        }
        input[type="file"].disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background: #4b5563;
        }
        button {
            background: linear-gradient(135deg, #FFB7C5, #FF9999);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            transition: transform 0.2s ease, background 0.2s ease;
            position: relative;
            font-weight: 500;
        }
        button:hover {
            transform: scale(1.05);
        }
        button:active {
            background: linear-gradient(135deg, #FF9999, #FFB7C5);
        }
        button:disabled {
            background: #6b7280;
            cursor: not-allowed;
            transform: none;
        }
        button.loading::after {
            content: '\f1ce';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: spin 1s linear infinite;
        }
        button.loading span {
            visibility: hidden;
        }
        button.success {
            animation: successScale 0.5s ease-out;
        }
        .char-count {
            color: #9ca3af;
            font-size: 0.875rem;
        }
        .interaction-icons {
            display: flex;
            gap: 1.5rem;
            color: #9ca3af;
            font-size: 1.25rem;
            align-items: center;
            margin-top: 0.7rem;
        }
        .interaction-icons i {
            cursor: pointer;
            transition: color 0.3s ease, transform 0.3s ease;
        }
        .interaction-icons i:hover {
            color: #FFB7C5;
            transform: scale(1.2);
        }
        .interaction-icons span {
            margin-left: 0.25rem;
            font-size: 1rem;
        }
        .comments-section {
            margin-top: 0.5rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 4px;
            transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
            overflow: hidden;
            min-height: 0;
        }
        .comments-section.collapsed {
            max-height: 0;
            opacity: 0;
            padding: 0;
        }
        .comments-section.expanded {
            max-height: none;
            opacity: 1;
        }
        .comment-toggle {
            color: #FFB7C5;
            cursor: pointer;
            font-size: 0.875rem;
            margin-top: 0.5rem;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            transition: color 0.3s ease;
        }
        .comment-toggle:hover {
            color: #FF9999;
        }
        .comment {
            padding: 0.5rem ;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            animation: slideIn 0.4s ease-out forwards;
        }
        .comment:last-child {
            border-bottom: none;
        }
        #avatarPreview img, .image-preview-grid img {
            animation: scaleIn 0.4s ease-out forwards;
        }
        .video-js {
            width: 240px !important;
            height: 132px !important;
            background-color: #000;
            object-fit: cover;
        }
        .vjs-loading-spinner {
            width: 2em;
            height: 2em;
            border-radius: 1em;
        }
        .video-js .vjs-big-play-button {
            font-size: 2em;
            line-height: 1.5em;
            margin-left: -1.4em;
        }
        .p-4 {
            padding: 10px 15px 5px !important;
        }
        .w-48 {
            width: 192px;
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        @keyframes fadeOut {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(20px);
            }
        }
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes slideInRight {
            from {
                right: -300px;
                opacity: 0;
            }
            to {
                right: 20px;
                opacity: 1;
            }
        }
        @keyframes slideOutRight {
            from {
                right: 20px;
                opacity: 1;
            }
            to {
                right: -300px;
                opacity: 0;
            }
        }
        @keyframes spin {
            from {
                transform: translate(-50%, -50%) rotate(0deg);
            }
            to {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }
        @keyframes successScale {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.15);
            }
            100% {
                transform: scale(1);
            }
        }
        @keyframes pulse {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.4;
            }
            100% {
                opacity: 1;
            }
        }
        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }