.jy-header {
    background: linear-gradient(135deg, #a8e6cf, #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;
}


.jy-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jy-header-dot {
    width: 12px;
    height: 12px;
    background-color: #4a9d4a;
    border-radius: 50%;
}

.jy-header-title {
    font-size: 24px;
    color: #333;
    font-weight: normal;
}

.jy-header-subtitle {
    font-size: 18px;
    color: #4a9d4a;
    margin-left: 20px;
    border-bottom: 2px solid #4a9d4a;
    padding-bottom: 2px;
}

.jy-header-more {
    display: flex;
    align-items: center;
    color: #4a9d4a;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.jy-header-more::after {
    content: "≫";
    margin-left: 10px;
    font-size: 20px;
}

/* 卡片网格布局 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: calc(var(--unified-max-width) - 40px);
    margin: 0 auto;
    /* padding: 0; */
    /* padding: 0 30px; */
}

/* 单个卡片样式 */
/* .teacher-card {
    width: 100%;
    aspect-ratio: 500/362;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-self: center;
    position: relative;
} */
.teacher-card {
    width: 100%;
    height: 290px;
    min-height: 290px;
    max-height: 290px;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-self: center;
    position: relative; 
    overflow: hidden;
    box-sizing: border-box;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.teacher-avatar {
    width: 70px;
    height: 70px;
    background-color: #b8d4d4;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info {
    flex: 1;
    min-width: 0;
}

.name-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.teacher-name {
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.teacher-id {
    font-size: 12px;
    color: #4a9d4a;
}

.school-info {
    font-size: 12px;
    color: #4a9d4a;
    margin-top: 6px;
    line-height: 1.2;
}

.tags {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: normal;
}

.tag.orange {
    background-color: #ff9800;
}

.tag.teal {
    background-color: #00bcd4;
}

.location-section {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.location-icon {
    width: 10px;
    height: 10px;
    font-size: 9px;
}

.location-text {
    font-size: 12px;
    color: #333;
    line-height: 1.2;
}

.subject-section {
    margin-bottom: 6px;
}

.subject-text {
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}

.description {
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    word-break: break-word;
    height: 36px;
}

.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;
}

.detail-button:hover {
    background-color: #333;
}

@media (max-width: 900px) {
    .jy-header {
        max-width: calc(100% - 40px);
        padding: 15px 20px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 580px) {
    .jy-header {
        max-width: calc(100% - 30px);
        padding: 12px 15px;
    }
    
    .jy-header-title {
        font-size: 20px;
    }
    
    .jy-header-subtitle {
        font-size: 16px;
    }
    
    .jy-header-more {
        font-size: 14px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 280px;
    }
    
    .teacher-card {
        padding: 12px;
        min-height: 200px;
    }
    
    .teacher-avatar {
        width: 50px;
        height: 65px;
    }
    
    .teacher-name {
        font-size: 14px;
    }
    
    .name-section {
        gap: 6px;
    }
}