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

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --success-color: #00bcd4;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

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

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    main {
        grid-template-columns: 1fr;
    }
}

.editor-section {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-id {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1976D2;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #00acc1;
}

#editor {
    flex: 1;
    min-height: 400px;
    padding: 20px;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

#editor:focus {
    background: #fafffe;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.char-count {
    color: var(--text-secondary);
}

.status {
    font-weight: 500;
}

.status.saving {
    color: var(--secondary-color);
}

.status.saved {
    color: var(--primary-color);
}

.status.error {
    color: #f44336;
}

/* 访问记录（仅对受密码保护且已验证的访问者显示） */
.audit-section {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

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

.audit-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.audit-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.audit-item {
    flex: 1 1 160px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
}

.audit-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.audit-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.audit-events h4 {
    margin: 6px 0 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.audit-event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audit-event {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.audit-event-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.audit-event-action {
    font-weight: 600;
    color: var(--text-primary);
}

.audit-event-ip {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.audit-event-status {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    white-space: nowrap;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.feature-card ol,
.feature-card ul {
    padding-left: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.feature-card li {
    margin-bottom: 8px;
}

footer {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #323232;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

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

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* 文件上传区域 */
.file-upload-section {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.file-upload-section.drop-active {
    outline: 2px dashed #9c27b0;
    outline-offset: -6px;
    background: #f7eef9;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upload-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.btn-upload {
    background: #9c27b0;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-upload:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.file-list {
    min-height: 60px;
    margin-bottom: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.btn-download,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-download {
    background: #2196F3;
    color: white;
}

.btn-download:hover {
    background: #1976D2;
}

.btn-delete {
    background: #f44336;
    color: white;
}

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

.upload-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* 过期时间区域 */
.expiry-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f0f4ff;
    border-top: 1px solid var(--border-color);
}

.expiry-section label {
    font-weight: 500;
    color: var(--text-primary);
}

.expiry-select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
}

.expiry-select:hover {
    border-color: var(--primary-color);
}

.expiry-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.expiry-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 文件上传拖拽区 */
.file-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-drop-zone.dragover {
    border-color: var(--primary-color);
    background: #f0fff0;
}

.file-drop-zone p {
    color: var(--text-secondary);
    margin: 10px 0;
}

.file-drop-zone .icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 10px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .expiry-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .expiry-select {
        width: 100%;
    }
}

/* ========================================
   引导页面样式
   ======================================== */

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-container {
    max-width: 600px;
    width: 100%;
}

.welcome-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.welcome-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.welcome-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.id-input-group {
    margin-bottom: 40px;
}

.url-preview {
    background: #f5f5f5;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.url-preview:hover {
    border-color: var(--primary-color);
    background: #fafffe;
}

.url-base {
    color: var(--text-secondary);
}

.url-id {
    color: var(--primary-color);
    font-weight: 600;
}

.id-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin-bottom: 15px;
}

.id-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.id-input::placeholder {
    color: #bbb;
}

.id-hint {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 25px;
    padding-left: 5px;
}

.id-hint small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-large {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-large:last-child {
    margin-bottom: 0;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 1.8rem;
}

.feature-item span:last-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 隐藏编辑器界面 */
#editorScreen.hidden {
    display: none;
}

/* 响应式 - 引导页面 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .welcome-screen {
        padding: 10px;
    }

    .welcome-content {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .welcome-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .id-input-group {
        margin-bottom: 30px;
    }

    .url-preview {
        font-size: 0.75rem;
        padding: 10px 12px;
        word-break: break-all;
    }

    .id-input {
        font-size: 16px;
        /* 防止 iOS 自动缩放 */
        padding: 12px 15px;
    }

    .id-hint {
        padding-left: 0;
    }

    .id-hint small {
        font-size: 0.8rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 14px 20px;
    }

    .welcome-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding-top: 20px;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .feature-item span:last-child {
        font-size: 0.75rem;
    }

    /* 编辑器界面移动端优化 */
    header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .toolbar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }

    .toolbar-right {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    #editor {
        min-height: 300px;
        padding: 15px;
        font-size: 14px;
    }

    .editor-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 15px;
        text-align: center;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        text-align: center;
    }

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

    .upload-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .btn-upload {
        width: 100%;
        padding: 12px;
    }
}

/* 小屏幕额外优化 */
@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }

    .url-preview {
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    .id-input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .btn-large {
        font-size: 0.95rem;
        padding: 12px 18px;
    }

    .welcome-features {
        gap: 12px;
    }

    .feature-icon {
        font-size: 1.3rem;
    }

    .feature-item span:last-child {
        font-size: 0.7rem;
    }
}

/* ========================================
   密码保护相关样式
   ======================================== */

.password-toggle {
    margin-bottom: 15px;
}

.btn-toggle-password {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-password:hover {
    border-color: #9c27b0;
    color: #9c27b0;
    background: rgba(156, 39, 176, 0.05);
}

.password-input-wrapper {
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.password-field {
    margin-bottom: 8px !important;
}

.password-hint-text {
    color: #ff9800;
    font-size: 0.85rem;
    display: block;
    padding-left: 5px;
}

.password-badge {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 密码验证弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-body .id-input {
    margin-bottom: 10px;
}

.password-error {
    color: #f44336;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: #fdecea;
    border-radius: 8px;
    text-align: center;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.modal-footer .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
}

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

    .modal-header h2 {
        font-size: 1.2rem;
    }
}

/* ========================================
   特殊上传区域样式 (Optimized)
   ======================================== */

.special-upload-section {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 248, 255, 0.6));
    border: 2px dashed #a5b4fc;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.special-upload-section.drop-active {
    outline: 2px dashed #6366f1;
    outline-offset: -6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 235, 255, 0.7));
}

.special-upload-section:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.special-upload-header {
    text-align: center;
}

.btn-toggle-special {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: #4f46e5;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-toggle-special:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.special-upload-panel {
    margin-top: 20px;
    animation: slideDown 0.4s ease-out;
}

.special-upload-info {
    background: rgba(99, 102, 241, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #4338ca;
    line-height: 1.6;
    border-left: 4px solid #6366f1;
}

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

.special-password-group {
    margin-bottom: 20px;
    position: relative;
}

.special-password-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

.special-password-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.password-hint-text {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.85rem;
    padding-left: 4px;
}

.btn-special-upload {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.btn-special-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3);
    filter: brightness(110%);
}

.btn-special-upload:active {
    transform: translateY(0);
}

/* ========================================
   进度条系统样式
   ======================================== */

.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
    border: 1px solid #f1f5f9;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    width: 0%;
    transition: width 0.2s linear;
    border-radius: 4px;
}

.progress-fill.download-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-detail {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
}

.progress-item.completed .progress-fill {
    background: #10b981;
}

.progress-item.failed .progress-fill {
    background: #ef4444;
}

/* ========================================
   公开文件列表样式
   ======================================== */

.public-files-section {
    margin: 25px 0;
    animation: fadeIn 0.5s ease;
}

.public-files-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.public-files-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #334155;
}

.public-badge {
    background: #ecfdf5;
    color: #059669;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
}

.public-file-item {
    background: linear-gradient(to right, #ffffff, #f0fdf4) !important;
    border-left: 4px solid #10b981 !important;
}

.public-tag {
    background: #d1fae5;
    color: #047857;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 特殊上传状态栏 */
.special-upload-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.special-upload-status.uploading {
    background: #eff6ff;
    color: #1e3a8a;
}

.special-upload-status.success {
    background: #f0fdf4;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.special-upload-status.error {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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