/* 头部样式 */
.tz-header {
    background: linear-gradient(135deg, #2A82E430
    , #ffffff);
    border-radius: 15px;
    padding: 15px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: calc(var(--unified-max-width) - 40px);
    margin-left: auto;
    margin-right: auto;
}

.tz-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tz-header-dot {
    width: 12px;
    height: 12px;
    background-color: #4a9d4a;
    border-radius: 50%;
}

.tz-header-title {
    font-size: 24px;
    color: #333;
    font-weight: normal;
}

.tz-header-subtitle {
    font-size: 18px;
    color: #4a9d4a;
    margin-left: 20px;
    border-bottom: 2px solid #4a9d4a;
    padding-bottom: 2px;
}

.tz-header-more {
    display: flex;
    align-items: center;
    color: #4a9d4a;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.tz-header-more::after {
    content: "≫";
    margin-left: 10px;
    font-size: 20px;
}

/* 卡片网格布局 */
.student-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: calc(var(--unified-max-width) - 40px);
    margin: 0 auto;
    margin-bottom: 30px;
}

/* 单个卡片样式 */
.student-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-self: center;
}

.student-recruiting {
    position: absolute;
    top: 47px;
    right: 15px;
    padding: 2px 6px;
    background-color: var(--main-color);
    color: white;
    font-size: 14px;
    border-radius: 4px;
    z-index: 1;
}

.student-arranged {
    position: absolute;
    top: 47px;
    right: 15px;
    padding: 2px 6px;
    background-color: #666;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    z-index: 1;
}

.student-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.student-avatar {
    width: 70px;
    height: 70px;
    background-color: #b8d4d4;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 24px;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info {
    flex: 1;
    min-width: 0;
}

.student-name-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
}

.student-name {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.student-id {
    font-size: 12px;
    color: #4a9d4a;
    white-space: nowrap;
    flex-shrink: 0;
}

.student-tags {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-bottom: 6px;
}

.student-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: normal;
}

.student-tag.orange {
    background-color: #ff9800;
}

.student-tag.teal {
    background-color: #00bcd4;
}

.student-salary {
    font-size: 12px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-description {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    word-break: break-word;
    -webkit-line-clamp: 6;
    min-height: 90px;
}

.student-detail-button {
    width: 100%;
    padding: 5px;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
    flex-shrink: 0;
}

.student-detail-button:hover {
    background-color: #333;
}

/* .student-tag.green {
    background-color: #4a9d4a;
} */

/* send_list.html 专用样式 - 投递列表优化 */
.send-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 8px;
    margin-bottom: 5px;
    gap: 10px;
}

.send-list-time {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.send-list-time .student-time {
    font-size: 12px;
    margin-bottom: 0;
}

.send-list-status {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .tz-header {
        max-width: calc(100% - 40px);
        padding: 15px 20px;
    }
    
    .student-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 580px) {
    .tz-header {
        max-width: calc(100% - 30px);
        padding: 12px 15px;
    }
    
    .tz-header-title {
        font-size: 20px;
    }
    
    .tz-header-subtitle {
        font-size: 16px;
    }
    
    .tz-header-more {
        font-size: 14px;
    }
    
    .student-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 280px;
    }
    
    .student-card {
        padding: 12px;
        min-height: 200px;
    }
    
    .student-avatar {
        width: 50px;
        height: 65px;
    }
    
    .student-name {
        font-size: 14px;
    }
    
    .student-name-section {
        gap: 6px;
    }
}