/* 简约大气通用样式 */
.tool-main {
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #fff;
}
/* 顶部分类标签 */
.task-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.task-nav-item {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.2s;
}
.task-nav-item.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.task-nav-item:hover {
    border-color: #cbd5e1;
}
/* 主体布局 */
.task-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
/* 左侧筛选栏 */
.task-filter {
    width: 240px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    flex-shrink: 0;
}
.filter-title {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 500;
}
.filter-item {
    margin-bottom: 14px;
}
.filter-item label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 5px;
}
.filter-item select,
.filter-item input {
    width: 100%;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: #334155;
}
.filter-item select:focus,
.filter-item input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}
.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.filter-btn {
    flex: 1;
    height: 36px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
.filter-btn:hover {
    background: #2563eb;
}
.reset-btn {
    flex: 1;
    height: 36px;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
.reset-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
/* 右侧内容区 */
.task-content {
    flex: 1;
    min-width: 300px;
}
.search-box {
    display: flex;
    margin-bottom: 20px;
}
.task-search {
    flex: 1;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px 0 0 8px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.task-search:focus {
    border-color: #3b82f6;
}
.search-btn {
    width: 80px;
    height: 42px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: 0.2s;
}
.search-btn:hover {
    background: #2563eb;
}
/* 任务卡片列表 */
.task-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}
.task-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.2s;
}
.task-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.card-head {
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.task-name {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}
.task-tag {
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eff6ff;
    color: #3b82f6;
}
.card-body {
    padding: 14px;
}
.card-row {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 5px 0;
}
.card-row strong {
    color: #1e293b;
    font-weight: 500;
}
.task-tips {
    margin-top: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}
.empty-text {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
    font-size: 14px;
}
/* 移动端适配 */
@media (max-width:768px){
    .task-wrap{flex-direction:column;}
    .task-filter{width:100%;}
    .task-list{grid-template-columns:1fr;}
}