/* page-preview.css — preview.php 独有样式（替代原 <style> 约 137 行） */

*, *::before, *::after { box-sizing: border-box; }
html, body.page-preview {
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}
body.page-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
embed.pdf-preview {
    width: 100%;
    min-height: calc(100vh - 180px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
#word-preview {
    width: 100%;
    min-height: calc(100vh - 180px);
    overflow: auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
#excel-preview {
    overflow-x: auto;
    min-height: calc(100vh - 180px);
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
#excel-preview table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
}
#excel-preview th,
#excel-preview td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
}
#excel-preview th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #374151;
}
#excel-preview tr:hover td {
    background-color: #f8fafc;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.archive-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background-color 0.2s;
}
.archive-item:last-child { border-bottom: none; }
.archive-item:hover { background-color: #f8fafc; }
.archive-icon { font-size: 1.3em; flex-shrink: 0; color: #6b7280; }
.archive-name {
    flex: 1 1 auto;
    word-break: break-all;
    color: #374151;
    font-weight: 500;
}
.archive-size {
    color: #6b7280;
    font-size: 0.875em;
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

@media (max-width: 768px) {
    embed.pdf-preview { min-height: calc(100vh - 160px); }
    #word-preview   { min-height: calc(100vh - 160px); padding: 16px; }
    #excel-preview  { min-height: calc(100vh - 160px); padding: 12px; }
    #excel-preview th,
    #excel-preview td { padding: 6px 10px; font-size: 12px; }
}