/* 新增样式：已选文件列表 */

.file-list-container {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.file-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9ff;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e0e5ff;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.file-icon {
    font-size: 1.2rem;
    color: #4b6cb7;
    flex-shrink: 0;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    margin-left: 8px;
    flex-shrink: 0;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.delete-file {
    background: #f8d7da;
    color: #721c24;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.delete-file:hover {
    background: #f5c6cb;
}

.move-handle {
    cursor: move;
    color: #6c757d;
    padding: 5px;
}

.file-item.dragging {
    opacity: 0.6;
    border: 1px dashed #4b6cb7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    overflow: hidden;
    margin-top: 30px;
}

header {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    text-align: center;
    padding: 25px 20px;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.tab.active {
    color: #4b6cb7;
    border-bottom: 3px solid #4b6cb7;
    background: white;
}

.content {
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.upload-area {
    border-radius: 12px;
    padding: 10px;
    background: #f8f9ff;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    width: 100%;
    height: 100px;
}

.upload-area:hover,
.upload-area.dragover {
    background: #e6f0ff;
    border-color: #2a5298;
}

.upload-icon {
    font-size: 60px;
    color: #4b6cb7;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

.btn {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 108, 183, 0.3);
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 108, 183, 0.4);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #4b6cb7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
}

.expire-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expire-time input {
    width: 70px;
    text-align: center;
}

.info-box {
    background: #e8f4ff;
    border-left: 4px solid #4b6cb7;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.footer-links a {
    color: #4b6cb7;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.approved {
    background: #d4edda;
    color: #155724;
}

.status.blocked {
    background: #f8d7da;
    color: #721c24;
}

.preview-container {
    margin: 20px 0;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    background: #000;
}

.preview-text {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    font-family: monospace;
    white-space: pre-wrap;
    text-align: left;
}

.file-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.file-link {
    background: #f1f8ff;
    border: 1px solid #c8e1ff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    word-break: break-all;
}

.notification {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.admin-entry {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.admin-entry:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .container {
        margin-top: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .content {
        padding: 20px 15px;
    }

    .file-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}



.trigger-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.close-btn {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
}

.close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-section {
    background: #f8fafc;
    /* border-radius: 12px; */
    padding: 10px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.pickup-code {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.pickup-code:hover {
    border-color: #667eea;
}

.code-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 2px;
    flex: 1;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.copy-btn:hover {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
}

.copy-btn.copied {
    background: #10b981;
}

.link-section {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
}

.link-text {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.link-text:hover {
    text-decoration: underline;
}

.qr-section {
    text-align: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Crect width='150' height='150' fill='%23f3f4f6'/%3E%3Cg fill='%23374151'%3E%3Crect x='10' y='10' width='30' height='30'/%3E%3Crect x='50' y='10' width='10' height='10'/%3E%3Crect x='70' y='10' width='10' height='10'/%3E%3Crect x='90' y='10' width='10' height='10'/%3E%3Crect x='110' y='10' width='30' height='30'/%3E%3Crect x='10' y='50' width='10' height='10'/%3E%3Crect x='30' y='50' width='10' height='10'/%3E%3Crect x='70' y='50' width='10' height='10'/%3E%3Crect x='110' y='50' width='10' height='10'/%3E%3Crect x='130' y='50' width='10' height='10'/%3E%3Crect x='10' y='70' width='10' height='10'/%3E%3Crect x='50' y='70' width='10' height='10'/%3E%3Crect x='90' y='70' width='10' height='10'/%3E%3Crect x='110' y='70' width='10' height='10'/%3E%3Crect x='130' y='70' width='10' height='10'/%3E%3Crect x='30' y='90' width='10' height='10'/%3E%3Crect x='50' y='90' width='10' height='10'/%3E%3Crect x='90' y='90' width='10' height='10'/%3E%3Crect x='10' y='110' width='30' height='30'/%3E%3Crect x='50' y='110' width='10' height='10'/%3E%3Crect x='70' y='110' width='10' height='10'/%3E%3Crect x='90' y='110' width='10' height='10'/%3E%3Crect x='110' y='110' width='30' height='30'/%3E%3C/g%3E%3C/svg%3E");
}

.qr-hint {
    color: #6b7280;
    font-size: 14px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 0px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.toast.show {
    transform: translateX(0);
}

@media (max-width: 480px) {
    .modal {
        padding: 24px;
        margin: 20px;
    }

    .pickup-code {
        flex-direction: column;
        text-align: center;
    }

    .code-text {
        font-size: 18px;
    }
}