/* 全局重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 使用系统默认字体 */
html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* 现代化主题色 - 增强版 */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary-color: #818cf8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* 半透明模糊效果导航栏 - 增强版 */
.modern-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(107, 114, 128, 0.05);
    position: sticky;
    top: 1rem;
    z-index: 50;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.modern-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(107, 114, 128, 0.08);
    transform: translateY(-1px);
}

/* Logo图片样式 */
.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* 移动端菜单样式 */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.mobile-menu.active {
    max-height: 500px;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

/* 导航链接样式 - 增强版 */
.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 移动端导航链接样式 */
.mobile-nav-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.05);
    transform: scale(0, 1);
    transform-origin: left;
    transition: transform 0.2s ease-in-out;
    z-index: -1;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::before {
    transform: scale(1, 1);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(129, 140, 248, 0.1);
}

.nav-link.active::before {
    transform: scale(1, 1);
}

/* 卡片样式 - 增强版 */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(107, 114, 128, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(107, 114, 128, 0.08);
}

.card:hover::before {
    opacity: 1;
}

.card-primary::before {
    opacity: 1;
}

/* 按钮基础样式 - 增强版 */
.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    outline: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0, 1);
    transform-origin: left;
    transition: transform 0.2s ease-in-out;
    z-index: -1;
}

.btn:hover::before {
    transform: scale(1, 1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(129, 140, 248, 0.1);
}

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

.btn-secondary:hover {
    background-color: #64748b;
}

/* 表单输入样式 - 增强版 */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-md);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 1;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 0 1px var(--primary-color);
}

/* 加载动画 - 增强版 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    opacity: 0.5;
    animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式工具类 */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
    
    .modern-nav {
        margin: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 10px;
    }
}

@media (min-width: 641px) {
    .desktop-hidden {
        display: none;
    }
}

/* 工具类 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 错误和成功消息样式 */
.message {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0.25rem 0 0 0.25rem;
}

.message-error {
    background-color: #fef2f2;
    color: var(--error-color);
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1);
}

.message-error::before {
    background-color: var(--error-color);
}

.message-success {
    background-color: #f0fdf4;
    color: var(--success-color);
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1);
}

.message-success::before {
    background-color: var(--success-color);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 标签页样式 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    position: relative;
}

.tab-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    background-color: rgba(129, 140, 248, 0.1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

/* 文件上传区域 */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(129, 140, 248, 0.05);
}

.file-upload input {
    display: none;
}

/* 图片预览样式 */
.preview-image {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.preview-image img {
    height: 120px;
    width: auto;
    object-fit: cover;
}

.preview-image .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
}

.preview-image .remove-btn:hover {
    background-color: var(--error-color);
    transform: scale(1.1);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .preview-image img {
        height: 100px;
    }
    
    main.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 防抖动样式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 优化字体渲染 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none;
    }
}

/* 半透明模糊效果页脚 - 增强版 */
.modern-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    margin: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(107, 114, 128, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.modern-footer:hover {
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(107, 114, 128, 0.08);
}

/* 页脚内容样式 */
.modern-footer-content {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.modern-footer-content p {
    margin: 0.5rem 0;
}

.modern-footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.modern-footer-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* 复选框样式 */
.checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-primary {
    background-color: rgba(129, 140, 248, 0.1);
    color: var(--primary-color);
}

.tag-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.tag-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.tag-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* 进度条样式 - 增强版 */
.progress-bar {
    height: 8px;
    background-color: rgba(107, 114, 128, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 徽章样式 */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

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

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

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

.badge-danger {
    background-color: var(--error-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

/* 标签样式 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(107, 114, 128, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.1);
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.2);
}

/* 骨架屏样式 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 毛玻璃效果通用类 */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 渐变按钮样式 - 增强版 */
.gradient-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gradient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: -1;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.gradient-btn:hover::before {
    opacity: 1;
}

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

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #f5f7ff 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.1) 0%, transparent 20%);
    pointer-events: none;
}

/* 玻璃态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(107, 114, 128, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(107, 114, 128, 0.08);
    transform: translateY(-2px);
}

/* 悬浮元素增强 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 动画延迟类 */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

.animate-delay-400 {
    animation-delay: 400ms;
}

.animate-delay-500 {
    animation-delay: 500ms;
}

/* 动画延迟类 */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* 响应式间距 */
@media (max-width: 640px) {
    .space-y-4 > * + * {
        margin-top: 1rem !important;
    }
    
    .space-x-4 > * + * {
        margin-left: 1rem !important;
    }
}

/* 确保登记新作品卡片独立显示 - 超级增强版 */
#add-work,
#add-work:not([style*="position"]),
#add-work[style*="position"] {
    position: static !important;
    float: none !important;
    clear: both !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    isolation: isolate !important;
    background: white !important;
    border-radius: 0.75rem !important;
    overflow: visible !important;
    transition: none !important;
    animation: none !important;
}

/* 超级优先选择器 - 强制覆盖内联类 */
div#add-work,
div#add-work.bg-white,
div#add-work.rounded-xl,
div#add-work.shadow-md,
div#add-work.overflow-hidden,
div#add-work.border,
div#add-work.border-gray-100,
div#add-work.mt-8,
div#add-work.relative,
div#add-work.z-10,
div#add-work.bg-white.rounded-xl.shadow-md.overflow-hidden.border.border-gray-100.mt-8.relative.z-10,
div#add-work[class*="relative"][class*="z-"] {
    position: static !important;
    float: none !important;
    clear: both !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    isolation: isolate !important;
}

/* 针对所有可能的父容器路径 */
body main > div > div > #add-work,
body main > div > #add-work,
body main > #add-work,
main > div > div > #add-work,
main > div > #add-work,
main > #add-work,
body > main > div > div > #add-work,
body > div > main > div > div > #add-work,
body > * > main > * > #add-work {
    position: static !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1 !important;
}

/* 隔离与堆叠上下文增强 */
#add-work {
    isolation: isolate !important;
    position: static !important;
    contain: layout !important;
    will-change: auto !important;
}

/* 强制显示 */
#add-work {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 确保图片上传区域可以点击 */
.file-upload, 
.file-upload *,
#cover-upload,
#cover-upload *,
#process-upload,
#process-upload * {
    pointer-events: auto !important;
    z-index: 10 !important;
}

/* 确保上传虚线框可以点击 */
.file-upload div[class*="border-dashed"],
#cover-upload div[class*="border-dashed"],
#process-upload div[class*="border-dashed"] {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
}

/* 确保文件输入框可以被点击触发 */
.file-input,
.file-upload input[type="file"],
#cover-upload input[type="file"],
#process-upload input[type="file"] {
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 0 !important;
    z-index: 15 !important;
}

/* 响应式增强 */
@media (max-width: 768px) {
    #add-work {
        position: static !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 强制重置任何可能的定位属性 */
#add-work {
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 2rem 0 !important;
}

/* 确保不被任何动画或过渡影响 */
#add-work {
    animation: none !important;
    transition: none !important;
}