/* --- 横向项目卡片专项样式 --- */
.project-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px; /* 卡片之间的间距 */
    margin-top: 20px;
}

/* 重新定义项目卡片为横向布局 */
.art-post.project-card {
    display: flex;
    align-items: center; /* 垂直居中 */
    padding: 25px !important;
    gap: 25px; /* 图片与文字的间距 */
    transition: all 0.3s ease;
}

.art-post.project-card:hover {
    transform: translateX(5px); /* 悬停时轻微右移，增加交互感 */
}

/* 左侧图标/预览图区域 */
.project-icon-box {
    width: 100px;
    height: 100px;
    flex-shrink: 0; /* 禁止图片被压缩 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 8px !important;
}

.project-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
/* 右侧内容区域 */
.project-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.project-name { 
    font-size: 18px; 
    color: #313d5a; 
    margin: 0; 
    font-weight: bold; 
}

.project-desc { 
    font-size: 14px; 
    color: #64748b; 
    line-height: 1.6; 
    margin: 0 0 15px 0;
    text-align: justify;
}

/* 按钮容器靠左对齐 */
.project-footer {
    display: flex;
    justify-content: flex-start;
}
/* 文字内容 */
.project-name { font-size: 18px; color: #313d5a; margin: 0 0 10px 0; font-weight: bold; }
.project-tag { 
font-size: 11px; 
padding: 3px 10px; 
border-radius: 20px; 
margin-left: 8px; 
vertical-align: middle;
font-weight: normal;
        }
/* 标签颜色区分 */
.tag-web { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.tag-tool { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.tag-app { background: rgba(102, 51, 153, 0.1); color: #663399; }

/* 小号新形态按钮 */
.neu-btn-sm {
display: inline-flex;
padding: 8px 20px;
border-radius: 10px;
color: #313d5a;
font-size: 13px;
font-weight: bold;
text-decoration: none;
box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff !important;
transition: 0.2s;
width: fit-content;
}
.neu-btn-sm:hover { box-shadow: inset 2px 2px 5px #d1d9e6, inset -2px -2px 5px #ffffff !important;color: #007bff; }
/* --- 屏蔽小按钮下划线 --- */
.neu-btn-sm, .neu-btn-sm:hover {
    text-decoration: none !important;
}

/* --- 移动端适配 (小于 768px 时变回上下结构) --- */
@media (max-width: 768px) {
    .art-post.project-card {
        flex-direction: column;
        text-align: center;
        padding: 20px !important;
    }
    .project-icon-box {
        margin: 0 auto 10px;
    }
    .project-header-row {
        flex-direction: column;
        gap: 8px;
    }
    .project-footer {
        justify-content: center;
    }
}