/* 在原有style.css基础上添加以下样式 */

/* 主头部样式优化 */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 表格操作按钮美化 */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: none;
    color: #7f8c8d;
    position: relative;
}

.action-icon:hover {
    transform: translateY(-2px);
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.action-icon::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 100;
    margin-bottom: 5px;
}

.action-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

.action-icon i {
    font-size: 1.1em;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #3498db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover {
    background: #e8f4fc;
    border-color: #2980b9;
}

.file-upload-area.dragover {
    background: #d4edda;
    border-color: #27ae60;
}

/* 空状态美化 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
    background: white;
    border-radius: 10px;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #bdc3c7;
    opacity: 0.5;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.empty-state p {
    color: #7f8c8d;
    max-width: 300px;
    margin: 0 auto;
}

/* 状态标签美化 */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-pending { 
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.status-researching { 
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
}

.status-bidding { 
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.status-submitted { 
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.status-won { 
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.status-lost { 
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

/* 表格行悬停效果 */
.projects-table tbody tr {
    transition: all 0.3s;
}

.projects-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: white;
}

/* 分页美化 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 20px;
}

#pageInfo {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1em;
}

/* 模态框美化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    position: relative;
}

.modal-header h3 {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* 备注历史美化 */
.notes-history {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.note-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.note-item:hover {
    transform: translateX(5px);
}

.note-time {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.note-time i {
    color: #3498db;
}

.note-text {
    color: #2c3e50;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 添加备注区域 */
.add-note textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1em;
    background: #f8f9fa;
    transition: all 0.3s;
    resize: vertical;
    min-height: 100px;
}

.add-note textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 关闭按钮 */
.close-modal,
.close-note-modal,
.close-import-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover,
.close-note-modal:hover,
.close-import-modal:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* 导入说明 */
.import-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.import-instructions h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.import-instructions ul {
    margin: 10px 0 0 20px;
    color: #6c757d;
}

.import-instructions li {
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-actions {
        gap: 5px;
    }
    
    .header-actions .btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}