      * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #f4f6f8;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* .header {
            background: linear-gradient(135deg, #27ae60 0%, #145a32 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .header p {
            opacity: 0.9;
            font-size: 14px;
        } */

        .upload-header {
            margin-bottom: 20px;
        }

        .upload-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }

        .upload-card {
            background: white;
            border-radius: 12px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            overflow: hidden;
        }

        .upload-area {
            padding: 40px;
        }

        .drop-zone {
            border: 3px dashed #27ae60;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            background: #f2faf5;
        }

        .drop-zone:hover,
        .drop-zone.drag-over {
            border-color: #1e8449;
            background: #e8f5ed;
            transform: scale(1.01);
        }

        .drop-zone-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .drop-zone-text {
            font-size: 18px;
            color: #333;
            margin-bottom: 10px;
        }

        .drop-zone-hint {
            font-size: 14px;
            color: #666;
        }

        #fileInput {
            display: none;
        }

        .file-list-area {
            padding: 30px 40px 40px;
            border-top: 1px solid #f0f0f0;
        }

        .file-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .file-list-title {
            /* font-size: 20px;
            font-weight: 600;
            color: #333; */

                        font-size: 15px;
            font-weight: 600;
            color: #555;
            /* margin-bottom: 10px; */
        }

        .refresh-btn {
            background: #27ae60;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .refresh-btn:hover {
            background: #1e8449;
            transform: translateY(-2px);
        }

        .file-list {
            border-radius: 8px;
            overflow-x: auto;
            border: 1px solid #e0e0e0;
        }

        .file-list table {
            width: 100%;
            min-width: 1000px;
            border-collapse: collapse;
        }

        .file-list thead {
            background: #f5f5f5;
        }

        .file-list th {
            padding: 15px 20px;
            text-align: left;
            font-weight: 600;
            color: #666;
            font-size: 14px;
            border-bottom: 1px solid #e0e0e0;
        }

        .file-list td {
            padding: 20px;
            border-bottom: 1px solid #e0e0e0;
            vertical-align: middle;
        }

        .file-item {
            transition: background 0.2s;
        }

        .file-item:last-child td {
            border-bottom: none;
        }

        .file-item:hover {
            background: #f2faf5;
        }

        .file-name {
            font-weight: 500;
            color: #333;
            word-break: break-all;
        }

        .file-time {
            color: #666;
            font-size: 14px;
        }

        .file-ttl {
            color: #27ae60;
            font-weight: 500;
        }

        .file-ttl.expiring-soon {
            color: #f0a500;
        }

        .file-type {
            color: #666;
            font-size: 14px;
        }

        .file-size {
            color: #666;
            font-size: 14px;
        }

        .file-url {
            text-align: right;
            /* display: flex;
            gap: 10px;
            align-items: center; */
        }

        .url-link {
            color: #64bcff;
            text-decoration: none;
            font-size: 14px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex: 1;
            margin-right:10px ;
        }

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

        .copy-btn {
            background: #27ae60;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .copy-btn:hover {
            background: #1e8449;
        }

        .copy-btn:active {
            transform: scale(0.95);
        }

        .empty-state {
            text-align: center;
            padding: 0px 20px;
            color: #999;
        }

        .empty-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #27ae60;
        }

        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #333;
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            animation: slideIn 0.3s ease;
        }

        .toast.success {
            background: #4caf50;
        }

        .toast.error {
            background: #f44336;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .uploading {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            z-index: 1001;
            text-align: center;
            min-width: 280px;
        }

        .uploading-filename {
            font-size: 13px;
            color: #666;
            margin: 8px 0 12px;
            word-break: break-all;
            max-width: 260px;
        }

        .progress-bar-wrap {
            width: 100%;
            height: 8px;
            background: #f0f0f0;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 8px;
        }

        .progress-bar-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #27ae60, #145a32);
            border-radius: 4px;
            transition: width 0.2s ease;
        }

        .progress-percent {
            font-size: 14px;
            color: #27ae60;
            font-weight: 600;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #27ae60;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .password-area {
            padding: 20px 40px;
            border-top: 1px solid #f0f0f0;
        }

        .password-input-group {
            display: flex;
            align-items: center;
            gap: 15px;
            max-width: 500px;
        }

        .password-label {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            white-space: nowrap;
        }

        .password-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s;
            outline: none;
        }

        .password-input:focus {
            border-color: #27ae60;
            box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
        }

        .clipboard-area {
            padding: 40px 40px 30px;
            background: white;
            border-radius: 12px;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }

        .clipboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .clipboard-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
        }

        .clipboard-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .clipboard-status {
            font-size: 13px;
            color: #999;
        }

        .clipboard-clear-btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .clipboard-clear-btn:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }

        .clipboard-save-btn {
            background: #1e8449;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .clipboard-save-btn:hover {
            background: #166035;
            transform: translateY(-2px);
        }

        .clipboard-textarea {
            width: 100%;
            min-height: 240px;
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 15px;
            font-family: inherit;
            resize: vertical;
            transition: border-color 0.3s, box-shadow 0.3s;
            outline: none;
            line-height: 1.6;
            box-sizing: border-box;
        }

        .clipboard-textarea:focus {
            border-color: #27ae60;
            box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
        }

        .clipboard-history-area {
            margin-top: 18px;
            border-top: 1px solid #e0e0e0;
            padding-top: 14px;
            overflow-x: auto;
        }

        .clipboard-history-title {
            font-size: 15px;
            font-weight: 600;
            color: #555;
            margin-bottom: 10px;
        }

        .clipboard-history-empty {
            color: #bbb;
            font-size: 13px;
            padding: 8px 0;
        }

        .clipboard-history-table {
            width: 100%;
            min-width: 480px;
            border-collapse: collapse;
            font-size: 13px;
        }

        .clipboard-history-table thead {
            background: #f5f5f5;
        }

        .clipboard-history-table th {
            padding: 8px 12px;
            text-align: left;
            font-weight: 600;
            color: #666;
            border-bottom: 1px solid #e0e0e0;
        }

        .clipboard-history-table td {
            padding: 8px 12px;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: middle;
        }

        .clipboard-history-table tr:last-child td {
            border-bottom: none;
        }

        .clipboard-history-table tr:hover td {
            background: #f9fff9;
        }

        .ch-time {
            white-space: nowrap;
            color: #888;
            font-size: 12px;
        }

        .ch-preview {
            color: #444;
            word-break: break-all;
            max-width: 420px;
        }

        .ch-restore-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 4px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            white-space: nowrap;
            transition: background 0.2s;
        }

        .ch-restore-btn:hover {
            background: #4a5cd6;
        }

        /* 预览按钮 */
        .preview-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .preview-btn:hover {
            background: #4a5cd6;
        }

        /* 图片预览弹窗 */
        .img-preview-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        .img-preview-box {
            position: relative;
            max-width: min(90vw, 1200px);
            max-height: 90vh;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .img-preview-img {
            display: block;
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
        }

        .img-preview-close {
            position: absolute;
            top: 8px;
            right: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            font-size: 14px;
            line-height: 28px;
            text-align: center;
            cursor: pointer;
            z-index: 1;
            transition: background 0.2s;
            padding: 0;
        }

        .img-preview-close:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        /* 删除按钮 */
        .delete-btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            white-space: nowrap;
            transition: all 0.2s;
        }

        .delete-btn:hover {
            background: #c0392b;
        }

        .delete-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        /* 来源徽章 */
        .source-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
        }

        .source-badge.local {
            background: #f0f0f0;
            color: #888;
        }

        .source-badge.share {
            background: #e3f0ff;
            color: #1a73e8;
        }

        /* iOS 风格切换开关 */
        .toggle-label {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            cursor: pointer;
            user-select: none;
        }

        .toggle-input {
            display: none;
        }

        .toggle-track {
            position: relative;
            width: 36px;
            height: 20px;
            background: #ccc;
            border-radius: 10px;
            transition: background 0.25s;
            flex-shrink: 0;
        }

        .toggle-input:checked + .toggle-track {
            background: #27ae60;
        }

        .toggle-thumb {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.25);
            transition: left 0.25s;
        }

        .toggle-input:checked + .toggle-track .toggle-thumb {
            left: 18px;
        }

        .toggle-text {
            font-size: 13px;
            color: #555;
        }

        @media (max-width: 768px) {
            .upload-area {
                padding: 20px;
            }

            .password-area {
                padding: 16px 20px;
            }

            .clipboard-area {
                padding: 20px;
            }

            .file-list-area {
                padding: 20px;
            }

            .clipboard-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .clipboard-actions {
                width: 100%;
                justify-content: flex-end;
            }

            .file-list-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .file-list-actions {
                width: 100%;
                justify-content: flex-end;
            }
        }

        @media (max-width: 768px) {

            .file-item,
            .file-item-header {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .file-item>div::before {
                content: attr(data-label);
                font-weight: 600;
                margin-right: 10px;
                color: #666;
            }

            .file-item-header {
                display: none;
            }

            .password-input-group {
                flex-direction: column;
                align-items: stretch;
            }
        }