/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.container {
    width: 95vw;
    max-width: 95vw;
    margin: 0 auto;
    padding: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    position: relative;
    z-index: 10;
}

.header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    margin-bottom: 0;
}

.header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

/* 免责声明样式 */
.disclaimer-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    position: relative;
    z-index: 9;
}

.disclaimer-section.hidden {
    transform: translateY(-100%);
    opacity: 0;
    margin-bottom: 0;
}

.disclaimer-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.disclaimer-header:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
}

.disclaimer-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.disclaimer-content {
    padding: 15px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4;
}

.disclaimer-content.expanded {
    max-height: 800px;
}

.disclaimer-item {
    margin-bottom: 12px;
}

.disclaimer-item:last-child {
    margin-bottom: 0;
}

.disclaimer-item h4 {
    color: #ff6b6b;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.disclaimer-item p {
    color: #555;
    line-height: 1.4;
    margin: 4px 0;
    font-size: 0.85rem;
}

.disclaimer-item strong {
    color: #e53935;
    font-weight: 600;
}

/* 主要内容区域 */
.main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* 内容区域 - 全宽 */
.content-main {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* 资源列表区域 */
.resources-section {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: calc(100vh - 20px);
    min-height: auto;
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    transition: height 0.3s ease, margin 0.3s ease;
}

/* 当头部和免责声明隐藏时，资源区域扩展以占据更多空间 */
.resources-section.expanded {
    height: calc(100vh - 20px);
    margin: 10px 0;
}

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

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    color: #999;
    pointer-events: none;
    font-size: 1.1rem;
}

/* 筛选控件样式 */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.filter-controls label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.filter-controls select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fafbfc;
    min-width: 120px;
}

.filter-controls select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

/* 上传触发按钮 */
.upload-trigger-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.upload-trigger-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.upload-trigger-btn .upload-icon {
    font-size: 1.2rem;
}

.resources-section h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.result-stats {
    margin-top: 5px;
}

.stats-text {
    color: #666;
    font-size: 0.85rem;
    background: #f0f4ff;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e1e8ff;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    color: #999;
    pointer-events: none;
    font-size: 1.1rem;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-controls label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-controls select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fafbfc;
    min-width: 120px;
}

.filter-controls select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

/* 搜索结果高亮 */
.search-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* 无搜索结果状态 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.no-results .search-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    color: #ccc;
}

.resources-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 减小最小宽度以显示更多卡片 */
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    max-height: calc(100vh - 80px);
    margin-top: 5px;
    transition: max-height 0.3s ease;
}

/* 当头部和免责声明隐藏时，资源网格扩展以占据更多空间 */
.resources-grid.expanded {
    max-height: calc(100vh - 40px);
}

/* 自定义滚动条 */
.resources-grid::-webkit-scrollbar {
    width: 8px;
}

.resources-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.resources-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.resources-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 资源卡片 */
.resource-card {
    background: #f8f9fa;
    border-radius: 8px; /* 减小圆角 */
    padding: 12px; /* 减小内边距 */
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    margin-bottom: 10px;
    gap: 5px; /* 减小间距 */
}

.resource-name {
    font-weight: 600;
    font-size: 0.95rem; /* 减小字体大小 */
    color: #333;
    flex: 1;
    word-break: break-word;
}

.resource-category {
    color: white;
    padding: 3px 8px; /* 减小内边距 */
    border-radius: 15px; /* 减小圆角 */
    font-size: 0.75rem; /* 减小字体大小 */
    font-weight: 500;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-left: 5px;
}

.resource-category.font {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
}

.resource-category.wallpaper {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 1px 4px rgba(255, 107, 107, 0.3);
}

.resource-category.background {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 1px 4px rgba(78, 205, 196, 0.3);
}

.resource-preview {
    margin: 8px 0; /* 减小间距 */
    cursor: pointer;
    transition: transform 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-preview:hover {
    transform: scale(1.02);
}

.preview-image {
    width: 100%;
    aspect-ratio: 9 /16; /* 设置为6:9比例 */
    object-fit: cover;
    border-radius: 6px; /* 减小圆角 */
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    background-color: #f0f0f0; /* 添加背景色 */
}

.preview-image:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* 隐藏文件信息（大小和上传时间） */
.file-info {
    display: none; /* 完全隐藏文件信息 */
}

/* 卡片操作区域 */
.card-actions {
    padding: 10px 0 0 0; /* 调整内边距 */
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
    margin-top: auto; /* 推到底部 */
}

.download-btn-card {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 6px 10px; /* 减小内边距 */
    border-radius: 5px; /* 减小圆角 */
    font-size: 0.85rem; /* 减小字体大小 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* 减小间距 */
}

.download-btn-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.download-btn-card .download-icon {
    font-size: 0.9rem; /* 调整图标大小 */
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95vw;
        max-width: 95vw;
        padding: 5px;
    }
    
    .header {
        padding: 10px;
        margin-bottom: 5px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .disclaimer-section {
        margin-bottom: 5px;
        border-radius: 6px;
    }
    
    .resources-section {
        padding: 8px;
        height: calc(100vh - 15px);
        margin: 5px 0;
    }
    
    .resources-section.expanded {
        height: calc(100vh - 15px);
        margin: 5px 0;
    }
    
    .resources-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .header-left {
        width: 100%;
    }
    
    .header-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .search-box {
        flex: 1;
        min-width: 0;
    }
    
    .search-input {
        padding: 8px 30px 8px 12px;
        font-size: 0.9rem;
    }
    
    .search-icon {
        right: 10px;
        font-size: 0.9rem;
    }
    
    .filter-controls {
        min-width: 0;
    }
    
    .filter-controls label {
        display: none;
    }
    
    .filter-controls select {
        padding: 8px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .upload-trigger-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .resources-grid {
        max-height: calc(100vh - 70px);
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .resources-grid.expanded {
        max-height: calc(100vh - 40px);
    }
    
    .resource-card {
        padding: 10px;
    }
    
    .resource-header {
        margin-bottom: 8px;
        gap: 4px;
    }
    
    .resource-name {
        font-size: 0.85rem;
    }
    
    .resource-category {
        padding: 2px 6px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    .preview-image {
        aspect-ratio: 9 /16;
    }
    
    .card-actions {
        padding: 8px 0 0 0;
    }
    
    .download-btn-card {
        padding: 5px 8px;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    .download-btn-card .download-icon {
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-width: 95vw;
    }
    
    .upload-modal-content {
        width: 95%;
        max-width: 95vw;
    }
    
    .modal-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .preview-section {
        flex: none;
        min-height: 250px;
        padding: 12px;
    }
    
    .info-section {
        flex: none;
        padding: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px 0;
    }
    
    .detail-item span {
        text-align: left;
        margin-left: 0;
        font-size: 0.8rem;
    }
    
    .detail-item label {
        font-size: 0.85rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .file-upload-area {
        padding: 15px;
    }
    
    .file-upload-area .upload-icon {
        font-size: 1.5rem;
    }
    
    .file-upload-area p {
        font-size: 0.9rem;
    }
    
    .file-types {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95vw;
        max-width: 95vw;
        padding: 3px;
    }
    
    .header {
        padding: 8px;
        border-radius: 6px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .disclaimer-section {
        margin-bottom: 5px;
        border-radius: 5px;
    }
    
    .resources-section {
        padding: 5px;
        height: calc(100vh - 10px);
        margin: 5px 0;
    }
    
    .resources-section.expanded {
        height: calc(100vh - 10px);
        margin: 5px 0;
    }
    
    .resources-grid {
        max-height: calc(100vh - 60px);
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .resources-grid.expanded {
        max-height: calc(100vh - 35px);
    }
    
    .resource-card {
        padding: 8px;
    }
    
    .resource-header {
        margin-bottom: 6px;
        gap: 3px;
    }
    
    .resource-name {
        font-size: 0.8rem;
    }
    
    .resource-category {
        padding: 2px 5px;
        font-size: 0.65rem;
        border-radius: 10px;
    }
    
    .preview-image {
        aspect-ratio: 9 /16;
    }
    
    .card-actions {
        padding: 6px 0 0 0;
    }
    
    .download-btn-card {
        padding: 4px 6px;
        font-size: 0.75rem;
        border-radius: 3px;
    }
    
    .download-btn-card .download-icon {
        font-size: 0.8rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .preview-container img {
        max-height: 300px;
    }
    
    .info-section {
        padding: 12px;
    }
    
    .download-btn-simple {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .download-btn-simple .download-icon {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .file-upload-area {
        padding: 12px;
    }
    
    .file-upload-area .upload-icon {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .file-upload-area p {
        font-size: 0.85rem;
    }
    
    .file-types {
        font-size: 0.7rem;
    }
    
    /* 确保在480px以下的屏幕也保留上传按钮文字 */
    .upload-trigger-btn {
        font-size: 0.9rem;
        padding: 8px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-card {
    animation: fadeIn 0.5s ease-out;
}

/* 成功提示 */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 15px;
}

.modal-layout {
    display: flex;
    min-height: 400px;
}

.preview-section {
    flex: 2;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
}

.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.info-section {
    flex: 1;
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* 资源详情样式优化 */
.resource-details {
    flex: 1;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    min-width: 80px;
    white-space: nowrap;
}

.detail-item span {
    color: #333;
    font-size: 0.85rem;
    text-align: right;
    flex: 1;
    margin-left: 15px;
    word-break: break-all;
}

/* 模态框内的下载按钮样式优化 */
.download-btn-simple {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.25);
}

.download-btn-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.download-btn-simple .download-icon {
    font-size: 1.2rem;
}

/* 上传表单样式 */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group-half {
    flex: 1;
}

/* 文件上传区域样式 */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #e1e8ff;
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area .upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.file-upload-area p {
    margin: 5px 0;
    color: #555;
}

.file-types {
    font-size: 0.85rem;
    color: #999 !important;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.cancel-btn,
.submit-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cancel-btn {
    background: #f1f5f9;
    color: #64748b;
}

.cancel-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: none;
}
