body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #6200ea;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s;
}

header:hover {
    background: #3700b3;
}

h1 {
    margin: 0;
}

.btn {
    background-color: #3700b3;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #6200ea;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

input[type="text"] {
    padding: 10px;
    width: 300px;
    border: 1px solid #6200ea;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    transition: border 0.3s;
}

input[type="text"]:focus {
    border: 1px solid #3700b3;
}

.results {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.list {
    width: 40%;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    gap: 15px;
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.card .filename {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    font-size: 14px;
}

h2 {
    margin-top: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: none;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    position: relative;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #6200ea;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #3700b3;
}

.modal-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: hidden;
    max-height: 50vh;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #6200ea;
    margin: 15px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.modal-content .image-container {
    text-align: center;
    margin: 15px 0;
}

.modal-content .image-container img {
    height: 200px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #6200ea;
    text-decoration: none;
    cursor: pointer;
}

.copy-button {
    background-color: #6200ea;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    float: right;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s, transform 0.1s;
}

.copy-button:hover {
    background-color: #3700b3;
    transform: translateY(-2px);
}

.copy-button:active {
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6200ea;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    text-align: center;
    min-width: 250px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.form-group input {
    padding: 10px;
    border: 1px solid #6200ea;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3700b3;
    outline: none;
}

.form-group button {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

.modal-content h2 {
    text-align: center;
    color: #6200ea;
}

/* 上传相关样式 */
.upload-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    color: #666;
}

.tab-button:hover {
    background-color: #f5f5f5;
}

.tab-button.active {
    color: #6200ea;
    border-bottom: 2px solid #6200ea;
    font-weight: 500;
}

.tab-content {
    display: none;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #6200ea;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    min-height: 150px;
    box-sizing: border-box;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

textarea:focus {
    border-color: #3700b3;
    outline: none;
}

.image-preview {
    margin: 10px 0;
    text-align: center;
    min-height: 100px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview:empty:before {
    content: '图片预览区域';
    color: #aaa;
}

input[type="file"] {
    border: 1px solid #6200ea;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* 选定文件列表样式 */
.selected-files-list {
    margin: 10px 0;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background-color: #f9f9f9;
}

.selected-files-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.selected-files-list li {
    padding: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.selected-files-list li:last-child {
    border-bottom: none;
}

.selected-files-list .file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.selected-files-list .file-size {
    color: #777;
    font-size: 0.9em;
}

.selected-files-list p {
    text-align: center;
    margin: 5px 0 0 0;
    font-weight: 500;
    color: #6200ea;
}

/* 图片预览网格 */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 10px 0;
    min-height: 100px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

.image-preview-grid:empty:before {
    content: '图片预览区域';
    color: #aaa;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-preview-grid.has-images {
    border-style: solid;
    border-color: #6200ea;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.preview-filename {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-count {
    grid-column: 1 / -1;
    text-align: center;
    color: #6200ea;
    font-weight: 500;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* 强制登录弹窗样式 */
.forced-login-modal, .forced-register-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 更深的背景遮罩 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.forced-login-modal .modal-content, 
.forced-register-modal .modal-content {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    padding: 30px;
    text-align: center;
    animation: modalPopIn 0.4s ease-out;
}

.login-message {
    color: #e74c3c;
    margin-bottom: 20px;
    font-weight: 500;
}

@keyframes modalPopIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.register-btn, .back-btn {
    background-color: #2ecc71 !important;
    margin-top: 10px;
}

.register-btn:hover, .back-btn:hover {
    background-color: #27ae60 !important;
}

/* 禁止在强制登录时滚动背景 */
body.login-required {
    overflow: hidden;
}

/* 移动设备响应式适配 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }
    
    header {
        flex-direction: column;
        padding: 10px;
    }
    
    header h1 {
        margin-bottom: 10px;
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }
    
    .btn .material-icons {
        margin-right: 0;
    }
    
    .header-buttons {
        display: flex;
        align-items: center;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    input[type="text"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    #searchButton {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }
    
    .results {
        flex-direction: column;
    }
    
    .list {
        width: 100%;
        margin: 10px 0;
    }
    
    .list h2 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px;
        background-color: #f5f5f5;
        border-radius: 4px;
        margin-bottom: 15px;
        transition: background-color 0.2s;
    }
    
    .list h2:hover {
        background-color: #ede7f6;
    }
    
    .list h2 .material-icons {
        opacity: 0.7;
    }
    
    .card {
        padding: 8px;
        font-size: 13px;
        margin: 3px 0;
    }
    
    .modal-content {
        width: 90%;
        max-width: 95%;
        margin: 5% auto;
        padding: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .modal-content pre {
        font-size: 12px;
        padding: 10px;
        max-height: 40vh;
    }
    
    /* 上传界面优化 */
    .upload-container {
        padding: 10px;
        box-sizing: border-box;
        width: 100%;
    }
    
    .tab-button {
        padding: 8px;
        font-size: 12px;
    }
    
    .form-group input, .form-group textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    .preview-item img {
        height: 60px;
    }
    
    .preview-filename {
        font-size: 10px;
    }
    
    /* 弹窗调整 */
    .forced-login-modal .modal-content, 
    .forced-register-modal .modal-content {
        width: 85%;
        max-width: 320px;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    /* 确保弹窗内的表单元素不会超出 */
    .modal-content .form-group {
        width: 100%;
    }
    
    /* 修复弹窗标题大小 */
    .modal-content h2 {
        font-size: 18px;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    
    /* 调整关闭按钮位置 */
    .close {
        top: 8px;
        right: 12px;
        font-size: 22px;
    }
    
    /* 移动端文件和图片列表的最大高度和滚动条 */
    #fileItems, #imageItems {
        max-height: 400px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* 增强iOS滚动体验 */
        padding-right: 5px; /* 为滚动条留出空间 */
    }
    
    #fileItems::-webkit-scrollbar, 
    #imageItems::-webkit-scrollbar {
        width: 5px;
    }
    
    #fileItems::-webkit-scrollbar-thumb, 
    #imageItems::-webkit-scrollbar-thumb {
        background: #6200ea;
        border-radius: 5px;
    }
    
    #fileItems::-webkit-scrollbar-track, 
    #imageItems::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 5px;
    }
    
    /* 隐藏按钮中的文本 */
    .btn span.btn-text {
        display: none;
    }
    
    /* 为超小屏幕进一步优化 */
    .header-buttons {
        display: flex;
        align-items: center;
    }
    
    /* 在移动设备上隐藏数据清洗按钮 */
    .help-btn {
        display: none !important; /* 即使登录了也不显示 */
    }
    
    /* 确保其他按钮正常显示 */
    .upload-btn, .logout-btn {
        display: flex !important;
    }
    
    /* 增强移动端按钮区域布局 */
    .header-buttons {
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

/* 超小屏幕设备（如手机竖屏） */
@media (max-width: 480px) {
    header div {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    header div .btn {
        flex: 1;
        margin: 0 3px;
        white-space: nowrap;
        overflow: hidden;
        font-size: 11px;
    }
    
    .card {
        font-size: 12px;
        padding: 6px;
    }
    
    .card img {
        max-width: 40px;
        max-height: 40px;
    }
    
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 5px;
    }
    
    .toast {
        min-width: 220px;
        font-size: 13px;
        padding: 8px 15px;
    }
    
    body {
        padding: 8px;
    }
    
    .btn {
        padding: 6px;
        min-width: 32px;
        margin-left: 4px;
    }
    
    .btn .material-icons {
        font-size: 18px;
    }
    
    .results {
        margin-top: 10px;
    }
    
    .list {
        padding: 8px;
        margin: 3px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 进一步优化弹窗 */
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 12px;
    }
    
    .forced-login-modal .modal-content, 
    .forced-register-modal .modal-content {
        width: 90%;
        max-width: 300px;
        padding: 15px 10px;
    }
    
    /* 调整弹窗标题大小 */
    .modal-content h2 {
        font-size: 18px;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    
    /* 调整关闭按钮位置 */
    .close {
        top: 8px;
        right: 12px;
        font-size: 22px;
    }
    
    /* 超小屏幕更小的最大高度 */
    #fileItems {
        max-height: 350px;
    }
    
    #imageItems {
        max-height: 250px;
    }
}

/* 去除安卓点击时的蓝色遮罩 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 对按钮和可点击元素进行优化 */
button, .btn, .card, .close, a, 
.tab-button, .preview-item, input[type="submit"] {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-user-select: none;
    user-select: none;
}

/* 确保点击元素有反馈但不使用浏览器默认效果 */
.btn:active, .card:active, .tab-button:active {
    opacity: 0.85;
    transform: scale(0.98);
}

/* 更多内容提示样式 */
.more-message {
    text-align: center;
    padding: 8px;
    color: #6200ea;
    font-size: 12px;
    border-top: 1px dashed #ddd;
    margin-top: 5px;
}

/* 空结果提示 */
.empty-message {
    text-align: center;
    color: #777;
    padding: 20px 0;
    font-style: italic;
}

/* 修复桌面端按钮布局 */
.header-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

/* 确保在桌面视图按钮保持水平排列 */
@media (min-width: 769px) {
    header {
        flex-direction: row !important; /* 强制水平排列 */
    }
    
    .header-buttons {
        flex-direction: row;
    }
    
    .header-buttons .btn {
        margin-left: 10px; /* 按钮间距 */
        padding: 10px 15px; /* 恢复原始大小 */
    }
    
    /* 按钮中恢复文字和图标间距 */
    .btn .material-icons {
        margin-right: 5px;
    }
    
    /* 确保文字显示在大屏幕 */
    .btn span.btn-text {
        display: inline !important;
    }
}

/* 用户名显示样式 */
.username-display {
    margin: 0 10px;
    font-weight: 500;
    color: white;
}

/* 添加图片操作区域的样式 */
.image-actions {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #eee;
}

.copy-tip {
    background-color: #fff3e0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-decoration: none !important;
    color: #6200ea !important;
}

.download-link:hover {
    background-color: #ede7f6;
}

/* 确保图片可以右键点击 */
.modal-content img {
    user-select: none;
    -webkit-user-drag: none;
    cursor: context-menu;
}

/* 添加图片加载动画 */
.lazy-image {
    transition: opacity 0.3s;
    opacity: 0;
}

.lazy-image[src^="data:"] {
    opacity: 0.2;
}

.lazy-image[src^="thumbnails/"] {
    opacity: 1;
}

/* 图片预览模态框样式 */
.image-details {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.image-details p {
    margin: 5px 0;
}

#imageModal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
}

#imageModal .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

#modalImg {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

#imageInfo {
    color: white;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

/* Material You 风格的模态框 */
.material-modal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.material-modal.show {
    opacity: 1;
    visibility: visible;
}

.material-modal-content {
    background-color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.material-modal.show .material-modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.material-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.material-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    background-color: #f5f5f5;
}

.image-container img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
}

.image-info-panel {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
}

.info-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 10px;
}

.material-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.material-btn:hover {
    background-color: #e0e0e0;
}

.material-btn .material-icons {
    font-size: 18px;
}

.loading-indicator {
    padding: 12px;
    text-align: center;
    color: #666;
}

.error-message {
    padding: 12px;
    text-align: center;
    color: #d32f2f;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .material-modal-content {
        width: 90%;
        max-width: none;
    }
    
    .info-group {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* 统一的简单模态框样式 */
.simple-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-modal-content {
    background-color: white;
    border-radius: 16px;
    max-width: 85%;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPopIn 0.3s forwards;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.modal-body {
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.simple-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.simple-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.preview-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

.text-content {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 60vh;
    margin: 0;
}

.simple-info {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.simple-info p {
    margin: 5px 0;
}

.simple-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.simple-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.simple-btn:hover {
    background-color: #e0e0e0;
}

.simple-btn .material-icons {
    font-size: 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .simple-modal-content {
        width: 90%;
        max-width: none;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .text-content {
        font-size: 13px;
    }
    
    .simple-actions {
        flex-wrap: wrap;
    }
} 